| indexOfObject |
(Pointer source, Object target) |
yoix.util |
| |
Returns the index of the first occurrence of
target
in
source,
or
-1
if no match is found.
Comparison is done using
===
semantics, which means strings are compared using a test that
duplicates the behavior of the
strcmp
built-in.
The
indexOf
and
indexOfObject
built-ins return the same result when
source
is a string and
target
is an integer ,
but
indexOf
will run slightly faster.
|
Yoix is a registered trademark of AT&T Inc.
|