1.0.0 • Published 2 years ago

@iyowei/not-empty-plain-object v1.0.0

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

notEmptyPlainObject({})

检查传入参数是不是非空对象字面量。

使用

import { log } from "console";
import notEmptyPlainObject from "@iyowei/not-empty-plain-object";

log(notEmptyPlainObject({})); // false
log(notEmptyPlainObject({ a: "after" })); // true
log(notEmptyPlainObject('')); // false
log(notEmptyPlainObject(123)); // false

安装

esm Node Version Badge browser

# Pnpm
pnpm add @iyowei/not-empty-plain-object

# yarn
yarn add @iyowei/not-empty-plain-object

# npm
npm add @iyowei/not-empty-plain-object

参与贡献

PRs Welcome

其它

"@iyowei/not-empty-plain-object" 使用 @iyowei/create-esm 脚手架生成。