Skip to content

dictionary

Rodrigo E. Principe edited this page Oct 30, 2018 · 1 revision

dictionary

extractList(dictionary, list)

Extract values from a dictionary that match keys from the given list

var list = ['a', 'c']
var dict = {a: 1, b:2, c:3}
var values = tools.dictionary.extractList(dict, list)
print(values) // [1, 3]

https://code.earthengine.google.com/e6200496f6089e6cd4eab8d7f009668a

Clone this wiki locally