UNPKG

uvm

Version:

Universal Virtual Machine for Node and Browser

14 lines (11 loc) 278 B
module.exports = { isObject (subject) { return (typeof subject === 'object' && subject !== null); }, isFunction (subject) { return (typeof subject === 'function'); }, randomNumber () { return ~~(Math.random() * 100000000); } };