lang/array.js
/**
		 * Removes the first item from an array which matches a predicate.
		 *
		 * @static
		 * @public
		 * @param {Array} a
		 * @param {Function} predicate
		 * @returns {Boolean}
		 */
Removes the first item from an array which matches a predicate.
Removes the first item from an array which matches a predicate .
remove(a, predicate) {
			assert.argumentIsArray(a, 'a');
			assert.argumentIsRequired(predicate, 'predicate', Function);
			const index = a.findIndex(predicate);
			const found = !(index < 0);
			if (found) {
				a.splice(index, 1);
			}
			return found;
		}
remove ( a , predicate ) { assert . argumentIsArray ( a , 'a' ) ; assert . argumentIsRequired ( predicate , 'predicate' , Function ) ; const index = a . findIndex ( predicate ) ; const found = ! ( index < 0 ) ; if ( found ) { a . splice ( index , 1 ) ; } return found ; }
Removes the first item from an array which matches a predicate.
Removes the first item from an array which matches a predicate .