1.0.0 • Published 2 years ago
@iyowei/not-empty-plain-object v1.0.0
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
安装
# Pnpm
pnpm add @iyowei/not-empty-plain-object
# yarn
yarn add @iyowei/not-empty-plain-object
# npm
npm add @iyowei/not-empty-plain-object
参与贡献
其它
"@iyowei/not-empty-plain-object" 使用 @iyowei/create-esm 脚手架生成。
1.0.0
2 years ago