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