Python's functools.partial() in JavaScript.