Given an array of strings, filter the array to only those matching a given word.
// input:
const a = ['apple', 'banana', 'kiwi', 'grapefruit', 'Kiwi'], w = 'kiwi'
// output:
['kiwi']
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)
Given an array of strings, filter the array to only those matching a given word.
// input:
const a = ['apple', 'banana', 'kiwi', 'grapefruit', 'Kiwi'], w = 'kiwi'
// output:
['kiwi']
/* output */