@stdlib/regexp
Version:
Regular expressions.
32 lines (23 loc) • 588 B
Plain Text
{{alias}}()
Returns a regular expression to match a native function.
Returns
-------
re: RegExp
Regular expression.
Examples
--------
> var RE = {{alias}}();
> var bool = RE.test( Date.toString() )
true
> bool = RE.test( (function noop() {}).toString() )
false
{{alias}}.REGEXP
Regular expression to match a native function.
Examples
--------
> var bool = {{alias}}.REGEXP.test( Date.toString() )
true
> bool = {{alias}}.REGEXP.test( (function noop() {}).toString() )
false
See Also
--------