Skip to content

Instantly share code, notes, and snippets.

View koderhun's full-sized avatar
💙
React development

Ramil koderhun

💙
React development
  • 14:31 (UTC -12:00)
View GitHub Profile
@koderhun
koderhun / type.js
Created February 25, 2020 04:10 — forked from ufocoder/type.js
function type(value) {
var regex = /^\[object (\S+?)\]$/;
var matches = Object.prototype.toString.call(value).match(regex) || [];
return (matches[1] || 'undefined').toLowerCase();
}