UNPKG
holyfills
Version:
latest (1.0.1)
1.0.1
1.0.0
No more "Holy Sxxt!!" when writting ES5/ES6
github.com/tomchentw/holyfills
tomchentw/holyfills
holyfills
/
test
/
array
/
test_utils.js
14 lines
(12 loc)
•
259 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
exports
.
createArrayLikeFromArray
=
function
(
arr
) {
var
o = {};
Array
.
prototype
.
forEach
.
call
(arr,
function
(
e, i
) { o[i] = e; }); o.
length
= arr.
length
;
return
o; };
exports
.
hasStrictMode
= (
function
(
) {
"use strict"
;
return
!
this
; }());