get

Grabs a value from a provided map using a given key

Arguments

Name

Type

Description

key

String

The key to pull from the map

map

Map

The map to get data from

Returns

Type

Description

Any

The value that lived at the provided key in the map

Usage

get('b', Map { 'a' => 1 'b' => 2 }) // => 2

Last updated