hexo/node_modules/ssh2/lib/utils.js

6 lines
162 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
exports.spliceOne = function(list, index) {
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1)
list[i] = list[k];
list.pop();
};