Check out example codes for "scss maps´". It will help you in understanding the concepts better.

Code Example 1

// define one
$font-weights: ("regular": 400, "medium": 500, "bold": 700)

// get value
@debug map.get($font-weights, "medium")  // 500
@debug map.get($font-weights, "extra-bold")  // null

Learn ReactJs, React Native from akashmittal.com