JSFiddle - React, Tailwind, and code Playground

by Johan Vandeplas

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);