mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 07:55:08 +00:00
16 lines
334 B
JavaScript
16 lines
334 B
JavaScript
'use strict';
|
|
|
|
['Function', 'String', 'Number', 'Date', 'RegExp'].forEach(function(name) {
|
|
exports['is' + name] = function(obj) {
|
|
return toString.call(obj) == '[object ' + name + ']';
|
|
};
|
|
});
|
|
|
|
exports.isObject = function(obj) {
|
|
return obj === Object(obj);
|
|
};
|
|
|
|
exports.noop = function() {};
|
|
|
|
exports.slice = Array.prototype.slice;
|