How to use the array-unique.apply function in array-unique

To help you get started, we’ve selected a few array-unique examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jonschlinkert / utils / lib / array / unique.js View on Github external
module.exports = function unique_(arr) {
  if (!Array.isArray(arr)) {
    throw new TypeError('utils#array.unique() expects an array.');
  }
  return uniq.apply(uniq, arguments);
};

array-unique

Remove duplicate values from an array. Fastest ES5 implementation.

MIT
Latest version published 8 years ago

Package Health Score

71 / 100
Full package analysis