MCPcopy Create free account
hub / github.com/caike/jQuery-Simple-Timer / getRegExpFlags

Function getRegExpFlags

tests/qunit-2.9.2.js:356–358  ·  view source on GitHub ↗
(regexp)

Source from the content-addressed store, hash-verified

354 }
355
356 function getRegExpFlags(regexp) {
357 return "flags" in regexp ? regexp.flags : regexp.toString().match(/[gimuy]*$/)[0];
358 }
359
360 function isContainer(val) {
361 return ["object", "array", "map", "set"].indexOf(objectType(val)) !== -1;

Callers 1

qunit-2.9.2.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected