Would you like to clone this notebook?

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

Cancel

Translator Custom Value

node v6.17.1
version: 1.0.0
endpointsharetweet
const jkt = require('jkt') const Person = jkt` name: String age: Number birthday: ${jkt.trans.custom(val => "I'm old man =,=")} ` const nina = Person({ name: "Nina", age: "25", birthday: new Date() // this will produce "I'm old man =,=" }); console.log(nina.birthday) // "I'm old man =,=" console.log(nina.j().birthday) // "I'm old man =,="
Loading…

no comments

    sign in to comment