-
Notifications
You must be signed in to change notification settings - Fork 3
get
Subhajit Sahu edited this page Jun 12, 2020
·
15 revisions
object.get(x, k);
// x: an object
// k: key
const object = require('extra-object');
var x = {a: 2, b: 4, c: 6, d: 8};
object.get(x, 'b');
// 4
object.get(x, 'd');
// 8