Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 361 Bytes

Named.md

File metadata and controls

43 lines (27 loc) · 361 Bytes

.named()

Returns any item uniquely matching the given name.


Usage

const item = node.named( /* Name */ );


Examples


One Value

{ 1 , a : { 2 } , 3 }
node.named('a'); // Returns 2

Invalid Name

{ 1 , 2 , 3 }
node.named('a'); // Returns undefined