Returns whether a certain item is in the provided list.
Install
$ npm i is-in-list
Usage
'use strict';var isInList = ; var listOfAwesomePeople = name: 'Sabrina' name: 'Gustav' name: 'Mattias' ; console;
With curry
-ing:
'use strict';var not = ;var isInList = ; var paramsBlackList = 'skip' 'link' 'page' 'sort' 'embed' 'limit' 'fields' 'pagination'; var query = foo: 'bar' baz: 'qnx' sort: '-foo'; var acceptedParams = Object; console;
Reasoning
underscore
/ lodash
/ ramda
/ <insert functional library here>
Why use this and not Because what I'm looking for is simpler than what any of those libraries have to offer. Please think of this library as a simple experiment of re-inventing the wheel to see how it works :)