lib/ambush.js
function remove(id) {
	if (!_isValidId(id)) {
		return false;
	}

	const oldValue = JSONfn.clone(goblin.ambush);

	_.remove(goblin.ambush, function(current) {
		return current.id === id;
	});

	goblin.ambushEmitter.emit('change', {
		type: 'remove',
		oldValue: oldValue
	});
}
function remove(id) {
	if (!_isValidId(id)) {
		return false;
	}

	const oldValue = JSONfn.clone(goblin.ambush);

	_.remove(goblin.ambush, function(current) {
		return current.id === id;
	});

	goblin.ambushEmitter.emit('change', {
		type: 'remove',
		oldValue: oldValue
	});
}
function remove ( id ) { if ( ! _isValidId ( id ) ) { return false ; } const oldValue = JSONfn . clone ( goblin . ambush ) ; _ . remove ( goblin . ambush , function ( current ) { return current . id === id ; } ) ; goblin . ambushEmitter . emit ( 'change' , { type : 'remove' , oldValue : oldValue } ) ; }
Remove an ambush function from the database.

@param {string} id Ambush function id.
@returns {void} Nothing.
Remove an ambush function from the database .