transform-result-sync
v1.0.0
Published
Run an arbitrary sync transform over a functions result if there is no error
Downloads
1,595
Maintainers
Readme
transform-result-sync
Run an arbitrary sync transform over a functions result if there is no error
var transform = require(transform-result-sync);
getData(transform(
function(result){
return result.id;
},
callback
));
// callback gets result.id