time-to-botec/squiggle/node_modules/@stdlib/regexp/native-function/docs/repl.txt

32 lines
588 B
Plaintext
Raw Normal View History

{{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
--------