UNPKG

underscore-es

Version:

javaScript's functional programming helper library for ES6 and beyond.

9 lines (7 loc) 245 B
// `_isRegExp` : an object's function // ----------------------------------- import {toString} from './_quickaccess'; // Is a given value a regular expression? export default function (obj) { return toString.call(obj) === '[object RegExp]'; }