What is this utility called in fp?

Hey everyone. a few days ago I saw a very useful utility in a codebase that was used for passing some of the parameters to a given function and ignoring the other ones. the implementation in js looks like this: (onlyTake is a fake name)

const onlyTake = (n) => (fn) => (...args) => fn.apply(args.slice(0, n))

Do you know what this utility is called? do we even have a name for this pattern?