File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var forEach = require ( 'for-each' ) ;
4
3
var callBind = require ( 'call-bind' ) ;
4
+ var forEach = require ( 'for-each' ) ;
5
+ var gOPD = require ( 'gopd' ) ;
6
+ var hasProto = require ( 'has-proto' ) ( ) ;
7
+ var isTypedArray = require ( 'is-typed-array' ) ;
5
8
6
9
var typedArrays = require ( 'available-typed-arrays' ) ( ) ;
7
10
8
11
var getters = { } ;
9
- var hasProto = require ( 'has-proto' ) ( ) ;
10
12
11
- var gOPD = Object . getOwnPropertyDescriptor ;
12
13
var oDP = Object . defineProperty ;
13
14
if ( gOPD ) {
14
15
var getByteLength = function ( x ) {
@@ -56,8 +57,6 @@ var tryTypedArrays = function tryAllTypedArrays(value) {
56
57
return foundByteLength ;
57
58
} ;
58
59
59
- var isTypedArray = require ( 'is-typed-array' ) ;
60
-
61
60
module . exports = function typedArrayByteLength ( value ) {
62
61
if ( ! isTypedArray ( value ) ) {
63
62
return false ;
Original file line number Diff line number Diff line change 56
56
"dependencies" : {
57
57
"call-bind" : " ^1.0.7" ,
58
58
"for-each" : " ^0.3.3" ,
59
+ "gopd" : " ^1.0.1" ,
59
60
"has-proto" : " ^1.0.3" ,
60
61
"is-typed-array" : " ^1.1.13"
61
62
},
You can’t perform that action at this time.
0 commit comments