JSFiddle - React, Tailwind, and code Playground
JavaScript
var me = this;
one = 1,
two = 2,
three = 3,
four = 5;
var array1 = ["one","two","three","four"].map(function(val){
return me[val];
});
console.log(array1);
var me = this;
one = 1,
two = 2,
three = 3,
four = 5;
var array1 = ["one","two","three","four"].map(function(val){
return me[val];
});
console.log(array1);