Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

doc: Minor edits.

  • Loading branch information...
commit feba59b1296cb9b22d0ff1439fc47a3d241b15d1 1 parent df67da1
@tobie tobie authored
Showing with 5 additions and 3 deletions.
  1. +1 −1  src/lang/array.js
  2. +4 −2 src/lang/regexp.js
View
2  src/lang/array.js
@@ -1,5 +1,5 @@
/** section: Language, related to: Array
- * $A(iterable) -> actualArray
+ * $A(iterable) -> Array
*
* Accepts an array-like collection (anything with numeric indices) and returns
* its equivalent as an actual [[Array]] object. This method is a convenience
View
6 src/lang/regexp.js
@@ -4,10 +4,12 @@
* Extensions to the built-in `RegExp` object.
**/
-/** alias of: RegExp#test
+/**
* RegExp#match(str) -> Boolean
+ * - str (String): a string against witch to match the regular expression.
*
- * Return true if string matches the regular expression, false otherwise.
+ * Alias of the native `RegExp#test` method. Returns `true`
+ * if `str` matches the regular expression, `false` otherwise.
**/
RegExp.prototype.match = RegExp.prototype.test;
Please sign in to comment.
Something went wrong with that request. Please try again.