mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Updates node modules
This commit is contained in:
parent
41e60bca0a
commit
3c001dd8e3
1172 changed files with 192787 additions and 0 deletions
12
node_modules/unordered-array-remove/index.js
generated
vendored
Normal file
12
node_modules/unordered-array-remove/index.js
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
module.exports = remove
|
||||
|
||||
function remove (arr, i) {
|
||||
if (i >= arr.length || i < 0) return
|
||||
var last = arr.pop()
|
||||
if (i < arr.length) {
|
||||
var tmp = arr[i]
|
||||
arr[i] = last
|
||||
return tmp
|
||||
}
|
||||
return last
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue