File: index.js

package info (click to toggle)
node-arr-exclude 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 100 kB
  • sloc: makefile: 2; sh: 2
file content (10 lines) | stat: -rw-r--r-- 186 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
'use strict';
module.exports = function (input, exclude) {
	if (!Array.isArray(input)) {
		return [];
	}

	return input.filter(function (x) {
		return exclude.indexOf(x) === -1;
	});
};