Definition

Nameless functions

Examples

const nums = [1, 2, 3]
 
nums.map(x => x * 2)
nums = [1, 2, 3]
 
map(lambda x: x * 2, nums)