COLLECTED BY
Organization:
Internet Archive
Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
The Wayback Machine - https://web.archive.org/web/20201220222023/https://github.com/lodash/lodash/blob/master/pullAll.js
Permalink
Cannot retrieve contributors at this time
28 lines (26 sloc)
758 Bytes
import basePullAll from './.internal/basePullAll.js'
/**
* This method is like `pull` except that it accepts an array of values to remove.
*
* **Note:** Unlike `difference`, this method mutates `array`.
*
* @since 4.0.0
* @category Array
* @param {Array } array The array to modify.
* @param {Array } values The values to remove.
* @returns {Array } Returns `array`.
* @see pull, pullAllBy, pullAllWith, pullAt, remove, reject
* @example
*
* const array = ['a', 'b', 'c', 'a', 'b', 'c']
*
* pullAll(array, ['a', 'c'])
* console.log(array)
* // => ['b', 'b']
*/
function pullAll ( array , values ) {
return ( array != null && array . length && values != null && values . length )
? basePullAll ( array , values )
: array
}
export default pullAll
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.