Transitioning from Python to working with JavaScript-based APIs has left me perplexed by some of the syntax. Amidst all the noise of random information on function declarations, I can't seem to find a clear answer.
In Python, you have the flexibility to specify arguments for a function based on order or name:
np.arange(1,5,step = 5)
Is it possible to do something similar in JavaScript?
For instance, if there is a function like:
ee.List.sequence(start,
end, step, count
)
,
and only three out of the four arguments are needed, I can easily specify the start, end, and step like this:
ee.List.sequence(1,100,2)
However, when it comes to specifying the count, must I use object notation?
ee.List.sequence({start=1,end=100, count=50})
Is there a shorthand method, akin to Python, such as:
or
ee.List.sequence(1,100,{count=50})
ee.List.sequence(1,100,,50)
?