Sha256: fffeb8819b50ab56301215851e8532424d7b69d8ab2880ea3eb7604a27321beb

Contents?: true

Size: 251 Bytes

Versions: 62

Compression:

Stored size: 251 Bytes

Contents

define(function () {

    /**
     * Returns last element of array.
     */
    function last(arr){
        if (arr == null || arr.length < 1) {
            return undefined;
        }

        return arr[arr.length - 1];
    }

    return last;

});

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
trusty-festivity-extension-2.3.1 node_modules/bower/node_modules/mout/src/array/last.js
trusty-festivity-extension-2.3.0 node_modules/bower/node_modules/mout/src/array/last.js