(array)
| 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); |
no test coverage detected
searching dependent graphs…