Answers for "javascript value pairs array"

18

array unique values javascript

const myArray = ['a', 1, 'a', 2, '1'];
const unique = [...new Set(myArray)]; // ['a', 1, 2, '1']
Posted by: Guest on March-03-2020
0

array of array key value javascript

var categories = [
    {"1":"Category 1"},
    {"2":"Category 2"},
    {"3":"Category 3"},
    {"4":"Category 4"}
];
Posted by: Guest on May-07-2020

Code answers related to "javascript value pairs array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language