mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
Bunch more completion stuff. Add more/less indicators to completion listint.
This commit is contained in:
@@ -38,13 +38,8 @@ const util = { //{{{
|
||||
return obj;
|
||||
},
|
||||
|
||||
// flatten an array: [["foo", "bar"], ["baz"]] -> ["foo", "bar", "baz"]
|
||||
flatten: function (ary)
|
||||
{
|
||||
if (ary.length == 0)
|
||||
return [];
|
||||
return Array.concat.apply(Array, ary);
|
||||
},
|
||||
// flatten an array: [["foo", ["bar"]], ["baz"], "quux"] -> ["foo", ["bar"], "baz", "quux"]
|
||||
flatten: function (ary) Array.concat.apply([], ary),
|
||||
|
||||
iterator: function (ary)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user