mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
fix(util) slice: array, count -> arra, begin, end
This commit is contained in:
parent
7c80be01a8
commit
e8161e859c
1 changed files with 2 additions and 2 deletions
|
|
@ -649,11 +649,11 @@
|
|||
*
|
||||
* @param array
|
||||
*/
|
||||
this.slice = function(array, count) {
|
||||
this.slice = function(array, begin, end) {
|
||||
var ret = [];
|
||||
|
||||
if (array)
|
||||
ret = [].slice.call(array, count);
|
||||
ret = [].slice.call(array, begin, end);
|
||||
|
||||
return ret;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue