Modifies the to function to mimic the from function. Returns the to function.
name, displayName, and any other properties of from are copied. The length property is not copied. Prototype, class, and inherited properties are copied.
to.toString() will return the same as from.toString() but prepended with a Wrapped with to() comment.
We found that mimic-function demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.
Package last updated on 14 Mar 2024
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.