fullstore

2018-10-23 admin

fullstore是什么

什么是fullstore,functional variables

fullstore使用教程帮助文档

Fullstore License NPM version 电子书 iis7站长之家 Build Status

Functional variables.

Install

npm i fullstore --save

How to use?

const fullstore = require('fullstore');
const user = fullstore();
const getValue = () => {
    return 'name';
};
user(getValue());
console.log(user());
// output
'name'
const fullstore = require('fullstore');
const user = fullstore('hello');
console.log(user());
// output
'hello'

Environments

In old node.js environments that not fully supports es2015, fullstore could be used with:

var fullstore = require('fullstore/legacy');

Related

  • zames - converts callback-based functions to Promises and apply currying to arguments

  • wraptile - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments.

  • currify - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single or more arguments.

License

MIT

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-43440.html

文章标题:fullstore

回到顶部