lib/ambush.js
function compileFn(db) {
	return db.map(function(amb) {
		return Object.assign({}, amb, {action: JSONfn.stringify(amb.action)});
	});

	return result;
}
function compileFn(db) {
	return db.map(function(amb) {
		return Object.assign({}, amb, {action: JSONfn.stringify(amb.action)});
	});

	return result;
}
function compileFn ( db ) { return db . map ( function ( amb ) { return Object . assign ( { } , amb , { action : JSONfn . stringify ( amb . action ) } ) ; } ) ; return result ; }
Turn actions in every ambush function into valid json strings.

@param {array} db Ambush functions db.
@returns {arrat} Compiled db ready to save.
Turn actions in every ambush function into valid json strings .