Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Arrow Mapping

node v6.17.1
version: 1.0.0
endpointsharetweet
const jkt = require('jkt') const Person = jkt` name: String name->full_name: String address: String address->address2: String age: Number age->ageInString: String ` const aditya = Person({ name: "Aditya", age: "27", address: "Kota Bekasi" }); console.log(aditya.j()) console.log(aditya.name) // "Aditya" console.log(aditya.full_name) // "Aditya" console.log(aditya.address2) // "Kota Bekasi" console.log(aditya.age) // 27 console.log(aditya.ageInString) // "27"
Loading…

no comments

    sign in to comment