0.1.10 • Published 2 years ago

@overscore-team/overscore v0.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

overscore

前端工具库

以往接触的多个前端项目中,总是重复性的使用各种公共方法,我们可以根据日常业务开发中的这一需求,针对性的将一部分公共业务方法整合成前端工具库,以减少重复开发的成本,提高开发效率。

安装使用

  1. 因为当前库使用 umd 规范打包构建,可以访问 unpkg 下载最新版本,直接在 html 文档中引用
<script src="overscore.min.js"></script>
<script>
	var deepClone = overscore.deepClone
</script>
  1. 使用 npm 安装
npm i @overscore-team/overscore@latest -S-D

在项目中使用

const { deepClone } = require('@overscore-team/overscore')

API

Object

  • deepClone 深拷贝
  • mergeObject 合并对象
  • mergeArray 合并数组

fn

  • throttle 节流
  • debounce 防抖
0.1.10

2 years ago

0.1.8

2 years ago

0.1.9

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.1

2 years ago