MCPcopy Create free account
hub / github.com/Justineo/github-hovercard / typeStr

Function typeStr

extensions/edge/mustache.js:32–34  ·  view source on GitHub ↗

* More correct typeof string handling array * which normally returns typeof 'object'

(obj)

Source from the content-addressed store, hash-verified

30 * which normally returns typeof 'object'
31 */
32 function typeStr (obj) {
33 return isArray(obj) ? 'array' : typeof obj;
34 }
35
36 function escapeRegExp (string) {
37 return string.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&');

Callers 1

mustache.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected