RSSAmplifier

(untitled) · Aug 14, 2015

How to create an array excluding provided values

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Create an array excluding provided value. /** * arrayWithout * @param {array} array - original array * @param {array} without - collection to omit * @example * arrayWithout(['a','b','c'], ['a','b','c']); // ['a'] */ function arrayWithout(a, w) { /* * Allows extension of prototype. * @example * Array.prototype.without = arrayWithout; * ['a','b','c'].without(['a','b','c']); // ['a'] */ if ( Array…

Read on miguelmota.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.