reducers-creator
Version:
Reducers Creator is an awesome tiny javascript package that allows you to easily and intuitively create reducer functions. Mainly used to create redux reducers.
33 lines (27 loc) • 1.02 kB
JavaScript
;
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
/**
* Copyright (c) 2020-present Ruben Arushanyan (https://github.com/ruben-arushanyan)
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
var isFunction = function isFunction(x) {
return typeof x === 'function';
};
var isString = function isString(x) {
return typeof x === 'string';
};
var isObject = function isObject(x) {
return _typeof(x) === 'object' && x !== null;
};
var isUndefined = function isUndefined(x) {
return typeof x === 'undefined';
};
module.exports = {
isFunction: isFunction,
isString: isString,
isObject: isObject,
isUndefined: isUndefined
};