What's Changed
Breaking changes
- Data modules are now lowercased:
-import { Arrays } from 'pure-fun';
+import { arrays } from 'pure-fun';
- arrays/headwill now act like initial did: it returns everything but the last item in an array
- arrays/initialwill now act like head did: it returns the first element
- arrays/getDuplicateswas renamed to- arrays/duplicates
- async/simpleFetchwas renamed to- async/fetchJSON
- objects/isObjectwould previously also pass on functions and classes. It now only validates if your data is a plain object literal
- objects/makeIterablewas removed since it does not work with microbundle/bublé at the moment
- objects/parseJSONwill now return the passed input if it is a valid JS object and not JSON where it would previously return {}
New functions
- async/isPromise: Check if your data is an async type/promise
- functions/isFunction: Check if your data is a valid callable function
- isomorphics/isIterable: Check if your data is an iterable instance
- maps/isMap: Check if your data is a Map
- sets/isSet: Check if your data is a Set
- strings/isString: Check if your data is a valid string