1
- function _arrayLikeToArray ( arr , len ) {
1
+ function _array_like_to_array ( arr , len ) {
2
2
if ( len == null || len > arr . length ) len = arr . length ;
3
3
for ( var i = 0 , arr2 = new Array ( len ) ; i < len ; i ++ ) arr2 [ i ] = arr [ i ] ;
4
4
return arr2 ;
5
5
}
6
- function _arrayWithHoles ( arr ) {
6
+ function _array_with_holes ( arr ) {
7
7
if ( Array . isArray ( arr ) ) return arr ;
8
8
}
9
- function _classCallCheck ( instance , Constructor ) {
9
+ function _class_call_check ( instance , Constructor ) {
10
10
if ( ! ( instance instanceof Constructor ) ) {
11
11
throw new TypeError ( "Cannot call a class as a function" ) ;
12
12
}
13
13
}
14
- function _iterableToArrayLimit ( arr , i ) {
14
+ function _iterable_to_array_limit ( arr , i ) {
15
15
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr [ Symbol . iterator ] || arr [ "@@iterator" ] ;
16
16
if ( _i == null ) return ;
17
17
var _arr = [ ] ;
@@ -35,25 +35,25 @@ function _iterableToArrayLimit(arr, i) {
35
35
}
36
36
return _arr ;
37
37
}
38
- function _nonIterableRest ( ) {
38
+ function _non_iterable_rest ( ) {
39
39
throw new TypeError ( "Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
40
40
}
41
- function _slicedToArray ( arr , i ) {
42
- return _arrayWithHoles ( arr ) || _iterableToArrayLimit ( arr , i ) || _unsupportedIterableToArray ( arr , i ) || _nonIterableRest ( ) ;
41
+ function _sliced_to_array ( arr , i ) {
42
+ return _array_with_holes ( arr ) || _iterable_to_array_limit ( arr , i ) || _unsupported_iterable_to_array ( arr , i ) || _non_iterable_rest ( ) ;
43
43
}
44
- function _unsupportedIterableToArray ( o , minLen ) {
44
+ function _unsupported_iterable_to_array ( o , minLen ) {
45
45
if ( ! o ) return ;
46
- if ( typeof o === "string" ) return _arrayLikeToArray ( o , minLen ) ;
46
+ if ( typeof o === "string" ) return _array_like_to_array ( o , minLen ) ;
47
47
var n = Object . prototype . toString . call ( o ) . slice ( 8 , - 1 ) ;
48
48
if ( n === "Object" && o . constructor ) n = o . constructor . name ;
49
49
if ( n === "Map" || n === "Set" ) return Array . from ( n ) ;
50
- if ( n === "Arguments" || / ^ (?: U i | I ) n t (?: 8 | 1 6 | 3 2 ) (?: C l a m p e d ) ? A r r a y $ / . test ( n ) ) return _arrayLikeToArray ( o , minLen ) ;
50
+ if ( n === "Arguments" || / ^ (?: U i | I ) n t (?: 8 | 1 6 | 3 2 ) (?: C l a m p e d ) ? A r r a y $ / . test ( n ) ) return _array_like_to_array ( o , minLen ) ;
51
51
}
52
52
import other from "other" ;
53
- var _other = _slicedToArray ( other , 1 ) , foo = _other [ 0 ] ;
53
+ var _other = _sliced_to_array ( other , 1 ) , foo = _other [ 0 ] ;
54
54
var Foo = function Foo ( ) {
55
55
"use strict" ;
56
- _classCallCheck ( this , Foo ) ;
56
+ _class_call_check ( this , Foo ) ;
57
57
} ;
58
58
export var __N_SSG = true ;
59
59
export default function Home ( ) {
0 commit comments