UNPKG
custom-app
Version:
latest (1.0.0)
1.0.0
ITIMS��Ʒ�鿪��ר��React���,�Dz��ý��ּ�dhcc-app���������
custom-app
/
dhcc-app-dll
/
node_modules
/
component-indexof
/
index.js
7 lines
•
175 B
JavaScript
View Raw
1
2
3
4
5
6
7
module
.
exports
=
function
(
arr, obj
){
if
(arr.
indexOf
)
return
arr.
indexOf
(obj);
for
(
var
i =
0
; i < arr.
length
; ++i) {
if
(arr[i] === obj)
return
i; }
return
-
1
; };