Sha256: 918f3cf9bea8e03cd497dbed2569616c063078785472775ecf8d91dc53eec19c
Contents?: true
Size: 382 Bytes
Versions: 10
Compression:
Stored size: 382 Bytes
Contents
'use strict'; var slice = require('array-slice'); module.exports = function diff(a, b, c) { var len = a.length; var arr = []; var rest; if (!b) { return a; } if (!c) { rest = b; } else { rest = [].concat.apply([], slice(arguments, 1)); } while (len--) { if (rest.indexOf(a[len]) === -1) { arr.unshift(a[len]); } } return arr; };
Version data entries
10 entries across 10 versions & 1 rubygems