Skip to content

apply()

apply() is similar to call(), but arguments are passed as an array.

greet.apply(person, ["Lyon", "France"]); // Alice lives in Lyon, France