Sha256: 658bb41105b7df54dba8a857a461242b565ef63f138d1caecd513af9544ac3b0

Contents?: true

Size: 192 Bytes

Versions: 10

Compression:

Stored size: 192 Bytes

Contents

'use strict';

module.exports = function diff(a, b) {
  return a.reduce(function (acc, value, i) {
    if (b.indexOf(value) === -1) {
      acc.push(value);
    }
    return acc;
  }, []);
};

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/arr-diff/benchmark/code/reduce.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/arr-diff/benchmark/code/reduce.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/arr-diff/benchmark/code/reduce.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/arr-diff/benchmark/code/reduce.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/arr-diff/benchmark/code/reduce.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/arr-diff/benchmark/code/reduce.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/arr-diff/benchmark/code/reduce.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/arr-diff/benchmark/code/reduce.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/arr-diff/benchmark/code/reduce.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/chokidar/node_modules/anymatch/node_modules/micromatch/node_modules/arr-diff/benchmark/code/reduce.js