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 11'use strict' ;
22
3- var forEach = require ( 'for-each' ) ;
43var 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' ) ;
58
69var typedArrays = require ( 'available-typed-arrays' ) ( ) ;
710
811var getters = { } ;
9- var hasProto = require ( 'has-proto' ) ( ) ;
1012
11- var gOPD = Object . getOwnPropertyDescriptor ;
1213var oDP = Object . defineProperty ;
1314if ( gOPD ) {
1415 var getByteLength = function ( x ) {
@@ -56,8 +57,6 @@ var tryTypedArrays = function tryAllTypedArrays(value) {
5657 return foundByteLength ;
5758} ;
5859
59- var isTypedArray = require ( 'is-typed-array' ) ;
60-
6160module . exports = function typedArrayByteLength ( value ) {
6261 if ( ! isTypedArray ( value ) ) {
6362 return false ;
Original file line number Diff line number Diff line change 5656 "dependencies" : {
5757 "call-bind" : " ^1.0.7" ,
5858 "for-each" : " ^0.3.3" ,
59+ "gopd" : " ^1.0.1" ,
5960 "has-proto" : " ^1.0.3" ,
6061 "is-typed-array" : " ^1.1.13"
6162 },
You can’t perform that action at this time.
0 commit comments