UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

12 lines (8 loc) 245 B
'use strict'; var toString = Object.prototype.toString , id = toString.call(1); module.exports = function (x) { return ((typeof x === 'number') || ((x instanceof Number) || ((typeof x === 'object') && (toString.call(x) === id)))); };