Socket
Book a DemoInstallSign in
Socket

@daybrush/utils

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daybrush/utils

utils for daybrush

latest
Source
npmnpm
Version
1.13.0
Version published
Maintainers
1
Created

What is @daybrush/utils?

@daybrush/utils is a utility library that provides a collection of useful functions for various common tasks in JavaScript development. It includes functions for array manipulation, string manipulation, type checking, and more.

What are @daybrush/utils's main functionalities?

Array Manipulation

The `findIndex` function helps in finding the index of an element in an array that satisfies a provided testing function.

const { findIndex } = require('@daybrush/utils');
const arr = [1, 2, 3, 4, 5];
const index = findIndex(arr, value => value === 3);
console.log(index); // Output: 2

String Manipulation

The `camelize` function converts a hyphenated string into camelCase.

const { camelize } = require('@daybrush/utils');
const str = 'hello-world';
const camelizedStr = camelize(str);
console.log(camelizedStr); // Output: 'helloWorld'

Type Checking

The `isArray` function checks if a given value is an array.

const { isArray } = require('@daybrush/utils');
const value = [1, 2, 3];
const result = isArray(value);
console.log(result); // Output: true

Other packages similar to @daybrush/utils

Keywords

daybrush

FAQs

Package last updated on 04 Jun 2023

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.