Skip to content

Commit

Permalink
refactor: use the old-fashioned syntax for typed array ctors
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyBelym authored May 17, 2021
1 parent 0a8ed80 commit f90240e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ var GLOBAL = (function getGlobal () {
})();

var TYPED_ARRAY_CTORS = {
Int8Array,
Uint8Array,
Uint8ClampedArray,
Int16Array,
Uint16Array,
Int32Array,
Uint32Array,
Float32Array,
Float64Array
'Int8Array': Int8Array,
'Uint8Array': Uint8Array,
'Uint8ClampedArray': Uint8ClampedArray,
'Int16Array': Int16Array,
'Uint16Array': Uint16Array,
'Int32Array': Int32Array,
'Uint32Array': Uint32Array,
'Float32Array': Float32Array,
'Float64Array': Float64Array
};

function isFunction (value) {
Expand Down

0 comments on commit f90240e

Please sign in to comment.