
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
can-util-function
Advanced tools
can/util/function plugin for canjs adds some common functions to the can namespace
*This plugin is experimental and not official or supported*
The can-util-function plugin adds some common functions onto the can framework object (sometimes called the can namespace);
can.debounce
can.defer
can.throttle
Creates a function that will delay calling fn by a number of milliseconds ms since the last time fn was called.
{
".button click": can.debounce(function(el, ev){
submitChanges(el);
}, 200)
}
Type: Function
A function to be delayed
Type: Number
The number of milliseconds to delay before calling fn again
Type: Object
The context (this) that fn will be called with
Delays calling fn until the current stack has cleared (like setTimeout(fn, 0))
can.defer(function(text) {
console.log(text);
}, this, 'deferred');
Type: Function
A function to be delayed
Type: Object
The context (this) that fn will be called with
Type: any arguments
All extra arguments are passed into fn in order
Creates a function that only gets invoked a max of once per the time passed in ms.
{
"{window} scroll": can.throttle(function(el, ev){
updatePosition(el);
}, 200)
}
Type: Function
A function to be throttled
Type: Number
The number of milliseconds to wait before allowing fn to be called again
Type: Object
The context (this) that fn will be called with
MIT - Please see the file called LICENSE.
FAQs
can/util/function plugin for canjs adds some common functions to the can namespace
The npm package can-util-function receives a total of 0 weekly downloads. As such, can-util-function popularity was classified as not popular.
We found that can-util-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.
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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.