Javascript String scan(pattern)

Description

Javascript String scan(pattern)


String.prototype.scan = function(pattern){
  if (Object.isString(pattern))
    pattern = RegExp.escape(pattern);
  return this.match(pattern);
};



PreviousNext

Related