ee.Number.first

Selects the value of the first value.

UsageReturns
Number.first(right)Number
ArgumentTypeDetails
this: leftNumberThe left-hand value.
rightNumberThe right-hand value.

Examples

Code Editor (JavaScript)

print(ee.Number(1).first(ee.Number(2)));  // 1

Python setup

See the Python Environment page for information on the Python API and using geemap for interactive development.

import ee
import geemap.core as geemap

Colab (Python)

print(ee.Number(1).first(ee.Number(2)).getInfo())  # 1