You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/symbol/match/README.md
+10-17Lines changed: 10 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ limitations under the License.
20
20
21
21
# MatchSymbol
22
22
23
-
> [Symbol][mdn-symbol] which provides a method that matches the regular expression against a string.
23
+
> [Symbol][mdn-symbol] which provides a method that matches a regular expression against a string.
24
24
25
25
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
26
26
@@ -60,7 +60,6 @@ var s = typeof MatchSymbol;
60
60
## Notes
61
61
62
62
- The [symbol][mdn-symbol] is only supported in environments which support [symbols][mdn-symbol]. In non-supporting environments, the value is `null`.
63
-
- When calling `String.prototype.match` and `String.prototype.matchAll` and the `pattern` argument is an object with a `[MatchSymbol]()` method, this method is called with the target string and replacement as arguments.
64
63
65
64
</section>
66
65
@@ -76,27 +75,21 @@ var s = typeof MatchSymbol;
76
75
77
76
```javascript
78
77
var defineProperty =require( '@stdlib/utils/define-property' );
79
-
var ReplaceSymbol =require( '@stdlib/symbol/replace' );
80
-
81
-
functionreplace( str, replacement ) {
82
-
return replacement;
83
-
}
78
+
var MatchSymbol =require( '@stdlib/symbol/match' );
0 commit comments