UNPKG

cluedin-widget

Version:

This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.

22 lines (19 loc) 595 B
var toString = Object.prototype.toString; module.exports = function( val ) { switch( toString.call( val ) ) { case '[object Function]': return 'function'; case '[object Date]': return 'date'; case '[object RegExp]': return 'regexp'; case '[object Arguments]': return 'arguments'; case '[object Array]': return 'array'; } if ( val === null ) return 'null'; if ( val === undefined ) return 'undefined'; if ( val === Object( val ) ) return 'object'; return typeof val; };