UNPKG
greiner-hormann
Version:
beta (1.1.0)
latest (1.4.2)
1.4.2
1.4.1
1.4.0
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
Greiner-Hormann clipping algorithm
github.com/w8r/GreinerHormann
w8r/GreinerHormann
greiner-hormann
/
lib
/
es5.isarray.js
6 lines
(5 loc)
•
263 B
JavaScript
View Raw
1
2
3
4
5
6
// ES5 15.4.3.2 Array.isArray ( arg )
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray
Array
.
isArray
=
Array
.
isArray
||
function
(
o
) {
return
Boolean
(o &&
Object
.
prototype
.
toString
.
call
(
Object
(o)) ===
'[object Array]'
); };