Skip to content

Commit a383d44

Browse files
committed
use Array.from()
1 parent 738beb7 commit a383d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module.exports = function SQL(strings) {
22
return {
33
sql: strings.join('?'), // for mysql / mysql2
44
text: strings.reduce((previous, current, i) => previous + '$' + i + current), // for postgres
5-
values: Array.prototype.slice.call(arguments, 1) // since node doesnt support argument unpacking yet
5+
values: Array.from(arguments).slice(1) // since node doesnt support argument unpacking yet
66
}
77
}

0 commit comments

Comments
 (0)