Sha256: 312ade7545f338a88c462bab9f87af8a8420f22c425ef203fc3cc5165036c82e
Contents?: true
Size: 508 Bytes
Versions: 69
Compression:
Stored size: 508 Bytes
Contents
define(['./indexOf'], function (indexOf) { /** * Combines an array with all the items of another. * Does not allow duplicates and is case and type sensitive. */ function combine(arr1, arr2) { if (arr2 == null) { return arr1; } var i = -1, len = arr2.length; while (++i < len) { if (indexOf(arr1, arr2[i]) === -1) { arr1.push(arr2[i]); } } return arr1; } return combine; });
Version data entries
69 entries across 69 versions & 2 rubygems