UNPKG

@icodebible/utils

Version:

Collection of essential utilities that help manipulation and transformation of various js object.

23 lines (22 loc) 389 B
/** * ** Check the prop if is Array.prototype ** */ exports.isArray = prop => { /** * */ return prop.constructor.name === 'Array' ? prop.constructor.name === 'Array' : false; }; /** * ** Check the prop if is Object.prototype ** */ exports.isObject = prop => { /** * */ return prop.constructor.name === 'Object' ? prop.constructor.name === 'Object' : false; };