o
Version:
common object helper functions
19 lines (18 loc) • 310 B
TypeScript
import { OObject } from './types';
/**
* Get the size of the specified object.
*
* @example
* ```
* const a = { a: 1, b: 2 };
*
* size(a); // => 2
* ```
*
* @throws TypeError
*
* @since 1.0.0
* @version 2.0.0
*/
declare function size(obj: OObject): number;
export default size;