Text array to kv list.
npm install @jswork/text2kv
import text2kv from '@jswork/text2kv';
const arr = ['a', 'b', 'c'];
const result = text2kv(arr);
/*
[
{ value: "a", label: "a" },
{ value: "b", label: "b" },
{ value: "c", label: "c" },
]
*/
Code released under the MIT license.