Gets the nth value matching
This function is valid in
v2.8.0 to v2.12.0.
This function has been downloaded 12 times.
Array or string to search for
subject is an array this must either be a function or a regular expression which will be tested against each element in
subject is a string this must be a regular expression which will be tested against it to find all of the matches.
The number of the occurrence that will be searched for and returned.
0 represents the first occurrence whereas
-1 represents the last.
The nth occurrence of
subject. If not found
undefined will be returned.
This function requires the following functions which are included automatically:
Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.
Get the nth index of the
Either gets the type of a value or adds a constructor registering its custom type name.