Package Exports
- @csvenke/compose-rules
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@csvenke/compose-rules) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@csvenke/compose-rules
Installing
Using yarn
yarn add @csvenke/compose-rules
Using npm
npm install --save @csvenke/compose-rules
Usage
import composeRules from "@csvenke/compose-rules";
const isLessThanTen = n => n < 10;
const isGreaterThanFive = n => n > 5;
const myRule = composeRules(isLessThanTen, isGreaterThanFive);
if (myRule(7)) {
// do something
}
License
MIT