how to use 2

node v10.24.1
version: 2.0.0
endpointsharetweet
const { notAsked, failure, success, map } = require('dataway'); map(value => value.toUpperCase())(success('Mr Wilson')); // => Success "MR WILSON" map(value => value.toUpperCase())(failure('any suited error value')); // => Failure "any suited error value" map(value => value.toUpperCase())(notAsked); // => NotAsked
Loading…

no comments

    sign in to comment