Skip to content
Rodrigo E. Principe edited this page Nov 7, 2018 · 3 revisions

string

format(string, dict)

Format a string using curly brackets.

var string = ee.String('Hello {name}')
var formatted = tools.string.format(string, {name: 'Rodrigo'})
print('Formatted string', formatted)
// prints 'Hello Rodrigo'

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

Clone this wiki locally