Sha256: c74fa2351e8ec3ef402131634946e155ed06eb683538ef2dcaf278192c703068
Contents?: true
Size: 512 Bytes
Versions: 69
Compression:
Stored size: 512 Bytes
Contents
define(['./slice'], function (slice) { /** * Call `methodName` on each item of the array passing custom arguments if * needed. */ function invoke(arr, methodName, var_args){ if (arr == null) { return arr; } var args = slice(arguments, 2); var i = -1, len = arr.length, value; while (++i < len) { value = arr[i]; value[methodName].apply(value, args); } return arr; } return invoke; });
Version data entries
69 entries across 69 versions & 2 rubygems