@reverse/utils
v1.3.8
Published
Utility functions used by other @reverse packages
Downloads
7
Readme
@reverse/utils
Really simple utility functions used by other @reverse packages
You can install with nodejs and npm
npm i @reverse/utils
Table of Contents
catchFallback
Runs the passed function into a try/catch block, and if it throws an error it will return the second paramater
catchFallback(() => mightThrowAnError(params), 'default');
switchObject
Returns object[key]
or object.default