mstch/test/data/lambda/dot_notation.js

24 lines
367 B
JavaScript
Raw Normal View History

2015-04-09 18:41:27 +00:00
({
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
}
})