@ariesclark/object
Advanced tools
Comparing version 0.2.3 to 0.3.0
@@ -27,6 +27,3 @@ export declare const assign: { | ||
[x: string]: PropertyDescriptor; | ||
}, getOwnPropertyNames: (o: any) => string[], getOwnPropertySymbols: (o: any) => symbol[], getPrototypeOf: (o: any) => any, hasOwn: (o: object, v: PropertyKey) => boolean, is: (value1: any, value2: any) => boolean, isExtensible: (o: any) => boolean, isFrozen: (o: any) => boolean, isSealed: (o: any) => boolean, keys: { | ||
(o: object): string[]; | ||
(o: {}): string[]; | ||
}, preventExtensions: <T>(o: T) => T, seal: <T>(o: T) => T, setPrototypeOf: (o: any, proto: object | null) => any, values: { | ||
}, getOwnPropertyNames: (o: any) => string[], getOwnPropertySymbols: (o: any) => symbol[], getPrototypeOf: (o: any) => any, hasOwn: (o: object, v: PropertyKey) => boolean, is: (value1: any, value2: any) => boolean, isExtensible: (o: any) => boolean, isFrozen: (o: any) => boolean, isSealed: (o: any) => boolean, preventExtensions: <T>(o: T) => T, seal: <T>(o: T) => T, setPrototypeOf: (o: any, proto: object | null) => any, values: { | ||
<T>(o: { | ||
@@ -37,4 +34,6 @@ [s: string]: T; | ||
}; | ||
export * from "./methods/empty"; | ||
export * from "./methods/identity"; | ||
export * from "./methods/keys"; | ||
export * from "./methods/omit"; | ||
export * from "./methods/pick"; |
@@ -1,4 +0,8 @@ | ||
export const { assign, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwn, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, values } = Object; | ||
export const { assign, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwn, is, isExtensible, isFrozen, isSealed, | ||
// keys, | ||
preventExtensions, seal, setPrototypeOf, values } = Object; | ||
export * from "./methods/empty"; | ||
export * from "./methods/identity"; | ||
export * from "./methods/keys"; | ||
export * from "./methods/omit"; | ||
export * from "./methods/pick"; |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "Fast, efficient, and easy-to-use object extensions for TypeScript.", | ||
@@ -31,5 +31,5 @@ "files": [ | ||
"scripts": { | ||
"build": "rm -rf dist/* && tsc && ts-readme", | ||
"build": "rm -rf dist/* && tsc", | ||
"test": "bun test" | ||
} | ||
} |
@@ -49,2 +49,9 @@ <div align="center"> | ||
</a> | ||
<a href="https://npm.im/@ariesclark/time"> | ||
<img | ||
src="https://files.aries.fyi/2024/04/01/d668dcdee6a6b8ce.png" | ||
alt="@ariesclark/time" | ||
width="32%" | ||
/> | ||
</a> | ||
</div> | ||
@@ -64,2 +71,10 @@ | ||
### `empty` (function) | ||
**Parameters:** | ||
- value (`unknown`) | ||
**returns:** boolean | ||
### `identity` (function) | ||
@@ -75,2 +90,10 @@ | ||
### `keys` (function) | ||
**Parameters:** | ||
- object (`T`) | ||
**returns:** (keyof T)[] | ||
### `omit` (function) | ||
@@ -87,12 +110,7 @@ | ||
### `{ assign, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwn, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, values }` (variable) | ||
### `{ assign, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwn, is, isExtensible, isFrozen, isSealed, | ||
### `empty` (function) | ||
// keys, | ||
preventExtensions, seal, setPrototypeOf, values }` (variable) | ||
**Parameters:** | ||
- value (`unknown`) | ||
**returns:** boolean | ||
<!-- INSERT GENERATED DOCS END --> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7810
16
113
113