All files / src/utils typeCheckers.js

0% Statements 0/15
100% Branches 0/0
0% Functions 0/7
0% Lines 0/8
1 2 3 4 5 6 7 8 9                 

export const getType = value => Object.prototype.toString.call(value).slice(8, -1);
export const isNumber = value => getType(value) === 'Number';
export const isDate = value => getType(value) === 'Date';
export const isString = value => getType(value) === 'String';
export const isArray = value => getType(value) === 'Array';
export const isObject = value => getType(value) === 'Object';
export const isFunction = value => getType(value) === 'Function';