Sha256: 9d68ecd52e010f5e45f687161cb8c8addc170253e4b1ca9efda430005db10f82
Contents?: true
Size: 571 Bytes
Versions: 69
Compression:
Stored size: 571 Bytes
Contents
define(['../array/slice'], function(slice){ /** * internal method used to create other collection modules. */ function makeCollectionMethod(arrMethod, objMethod, defaultReturn) { return function(){ var args = slice(arguments); if (args[0] == null) { return defaultReturn; } // array-like is treated as array return (typeof args[0].length === 'number')? arrMethod.apply(null, args) : objMethod.apply(null, args); }; } return makeCollectionMethod; });
Version data entries
69 entries across 69 versions & 2 rubygems