findNth()
Gets the nth value matching target
in subject
.
target
in.subject
is an array this must either be a function or a regular expression which will be tested against each element in subject
. If subject
is a string this must be a regular expression which will be tested against it to find all of the matches.0
represents the first occurrence whereas -1
represents the last.target
within subject
. If not found undefined
will be returned.This function directly requires the following functions which are included automatically:
findNthIndex()
target
in subject
.
has()
typeOf()
This function is directly required by the following function:
findNthIndex()
target
in subject
.