update documentation
This commit is contained in:
parent
aff40b0154
commit
ef07c50fff
1 changed files with 4 additions and 2 deletions
|
@ -26,7 +26,8 @@ Ox.clean = function(string) {
|
|||
|
||||
/*@
|
||||
Ox.endsWith <f> Tests if a string ends with a given substring
|
||||
Equivalent to `new RegExp(Ox.escapeRegExp(substring) + '$').test(string)`.
|
||||
Equivalent to (but faster than)
|
||||
`new RegExp(Ox.escapeRegExp(substring) + '$').test(string)`.
|
||||
(string, substring) -> <b> True if string ends with substring
|
||||
> Ox.endsWith('foobar', 'bar')
|
||||
true
|
||||
|
@ -403,7 +404,8 @@ Ox.splice = function(string, index, remove) {
|
|||
|
||||
/*@
|
||||
Ox.startsWith <f> Tests if a string ends with a given substring
|
||||
Equivalent to `new RegExp('^' + Ox.escapeRegExp(substring)).test(string)`.
|
||||
Equivalent to (but faster than)
|
||||
`new RegExp('^' + Ox.escapeRegExp(substring)).test(string)`.
|
||||
(string, substring) -> <b> True if string starts with substring
|
||||
> Ox.startsWith('foobar', 'foo')
|
||||
true
|
||||
|
|
Loading…
Reference in a new issue