This is the function to be used, it needs three arguments.
/**
* [transform description]
* @param {Object} records [description]
* @param {Object} [allowed={}] [description]
* @param {Object} [add={}] [description]
* @return {Object} [description]
*/
transform(records, allowed = {}, add = {})