Support array input
This commit is contained in:
parent
b0d79af3d9
commit
c72146a554
1 changed files with 5 additions and 11 deletions
|
@ -186,23 +186,17 @@ Diff.prototype = {
|
||||||
|| (this.options.ignoreCase && left.toLowerCase() === right.toLowerCase());
|
|| (this.options.ignoreCase && left.toLowerCase() === right.toLowerCase());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
removeEmpty(array) {
|
removeEmpty(value) {
|
||||||
let ret = [];
|
return value;
|
||||||
for (let i = 0; i < array.length; i++) {
|
|
||||||
if (array[i]) {
|
|
||||||
ret.push(array[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return ret;
|
|
||||||
},
|
},
|
||||||
castInput(value) {
|
castInput(value) {
|
||||||
return value;
|
return value;
|
||||||
},
|
},
|
||||||
tokenize(value) {
|
tokenize(value) {
|
||||||
return value.split('');
|
return value.slice();
|
||||||
},
|
},
|
||||||
join(chars) {
|
join(value) {
|
||||||
return chars.join('');
|
return value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue