mstch/test/data/lambda/dot_notation.js
Daniel Sipka eb98985815 import
2015-04-09 20:41:27 +02:00

23 lines
367 B
JavaScript

({
name: "A Book",
authors: ["John Power", "Jamie Walsh"],
price: {
value: 200,
vat: function () {
return this.value * 0.2;
},
currency: {
symbol: '$',
name: 'USD'
}
},
availability: {
status: true,
text: "In Stock"
},
// And now, some truthy false values
truthy: {
zero: 0,
notTrue: false
}
})