Skip to content

Repository files navigation

@13OnTheCode/Utils

JavaScript

VersionLicense

English | 简体中文

A collection of JavaScript/TypeScript utility tools

Features

  • Zero dependency
  • Tree Shakable

Prerequisites

Node.js

  • Version >= 16.0.0
  • ESM Project

Install

npm install @13onthecode/utils --save-dev

Usage

import{mergeObject}from'@13onthecode/utils'constfoo={foo: 'foo',other: {foo: 'foo'}}constbar={bar: 'bar',other: {bar: 'bar'}}constmerged=mergeObject(foo,bar)// => {// foo: "foo"// bar: "bar"// other: {// bar: 'bar'// }// }constdeepMerged=mergeObject(foo,bar,{mode: 'deep'})// => {// foo: "foo"// bar: "bar"// other: {// foo: "foo"// bar: "bar"// }// }

API

Array

Collocation

Guard

Map

Node

Object

Runtime

Set

String

Check Also

License

MIT License © 2023-PRESENT 13OnTheCode

About

A collection of JavaScript/TypeScript utility tools

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages