New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@ultraq/function-utils

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ultraq/function-utils

A collection of utilities for JavaScript functions

latest
Source
npmnpm
Version
0.5.2
Version published
Maintainers
1
Created
Source

function-utils

Build Status codecov npm Bundlephobia minified size

A collection of utilities for JavaScript functions.

Installation

npm install @ultraq/function-utils

API

memoize(func)

A higher-order function to apply memoization, returning a memozied version of the wrapped function.

If memoizing a recursive function, then memoize and define the function at the same time so you can make a call to the memoized function, eg:

const myFunction = memoize(() => myFunction());
  • func: the function to memoize

Keywords

function

FAQs

Package last updated on 09 Mar 2024

Did you know?

Socket

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.

Install

Related posts