mirror of
https://github.com/tiennm99/FBcount.git
synced 2026-05-21 18:25:28 +00:00
Init
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var objToString = Object.prototype.toString
|
||||
, isFunctionStringTag = RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);
|
||||
|
||||
module.exports = function (value) {
|
||||
return typeof value === "function" && isFunctionStringTag(objToString.call(value));
|
||||
};
|
||||
Reference in New Issue
Block a user