# yida-xin

> 求数组最大值，最小值，打印数组，日期格式化为字符串

Latest version **1.0.0** (published 2022-05-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install yida-xin
pnpm add yida-xin
yarn add yida-xin
bun add yida-xin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-05-14 |
| First published | 2022-05-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yuxiaobao |

## Links

- npm: https://www.npmjs.com/package/yida-xin
- npm.io page: https://npm.io/package/yida-xin

## Recent versions

- 1.0.0 (latest) — 2022-05-14

## README

## 作用
求数组最大值，最小值，打印数组，日期格式化为字符串

## 安装
npm install yida-utils

```js
const yida = require('./index.js')
   var srr = [34, 67, 34, 77, 99]
   //获取数组最大值
   const maxVal = yida.maxValue(srr)
   console.log(maxVal)//99
   //获取数组最小值
   const manVal = yida.minValue(srr)
   console.log(manVal)//34
   
   //打印数组没有返回值
   yida.print(srr) //34, 67, 34, 77, 99
   
   //获取格式化为日期格式
   const str = yida.format(new Date())
   console.log(str) //2022-5-13 16:54:33
```

## 开源协议
ISC

---
_Source: https://npm.io/package/yida-xin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
