MCPcopy
hub / github.com/fontello/fontello / uniq

Function uniq

client/lib/loader/loader.js:68–76  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

66
67 // Remove duplicates from an array preserving the order of the elements
68 function uniq(array) {
69 var result = [];
70
71 forEach(array, function (item) {
72 if (result.indexOf() === -1) result.push(item);
73 });
74
75 return result;
76 }
77
78 function has(obj, prop) {
79 return Object.prototype.hasOwnProperty.call(obj, prop);

Callers 1

loadAssetsFunction · 0.85

Calls 1

forEachFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…