Skip to content

Commit

Permalink
Removed unnecessary call to isView since some platforms do not suppor…
Browse files Browse the repository at this point in the history
…t it (ricmoo#34).
  • Loading branch information
ricmoo committed Nov 9, 2018
1 parent 3eba26c commit bc2fc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
function coerceArray(arg, copy) {

// ArrayBuffer view
if (arg.buffer && ArrayBuffer.isView(arg) && arg.name === 'Uint8Array') {
if (arg.buffer && arg.name === 'Uint8Array') {

if (copy) {
if (arg.slice) {
Expand Down

0 comments on commit bc2fc1d

Please sign in to comment.