${Object.keys(objects).length} objects loaded.
Open your browser's development console. Here's how. Then work as a group to define the following functions using simple arrow functions. As soon as a function works, put your group answer here.
getProp(name, property)
to return the value
of property
for name
, if any, otherwise
undefined
.
E.g., getProp('bird', 'airborne')
should return
true
and getProp('wren', 'airborne')
should return
undefined
.
Use the Lisp version as a guide.
getIsa(name)
to return the isa
value
for name
if any, else undefined
. E.g.,
getIsa('wren')
should return
bird
and getIsa('bird')
should return
undefined
.
Use the Lisp version
as a guide.
inheritProp(name, property)
to return the
value (immediate or inherited) for property
for
name
, if any, otherwise undefined
.
E.g., inheritProp('bird', 'airborne')
should return
true
, inheritProp('wren', 'airborne')
should return
true
, inheritProp('penguin', 'airborne')
should return
false
, and inheritProp('adelie-penguin', 'airborne')
should return
true
.
Use the Lisp version as a guide.