0.0.1-3 • Published 6 years ago

@malfaitrobin/redux-utils v0.0.1-3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Redux utils npm version npm downloads

Some functions that are used across the different packages.

Installation

With yarn:

yarn install @malfaitrobin/redux-utils

With npm:

npm install --save @malfaitrobin/redux-utils

Usage

isFunction

Tells you if a given value is a function or not.

import { isFunction } from "@malfaitrobin/redux-utils";

isFunction(() => 5); // true

isFunction(undefined); // false
isFunction(null); // false
isFunction({}); // false
isFunction([]); // false
isFunction(5); // false
isFunction(true); // false
isFunction(false); // false
isFunction(class Example {}); // false