Skip to content

javoski/object_id

Repository files navigation

object_id

A function that generates a unique id for objects

Installation

npm or yarn

npm install object_id
yarn add object_id

cdn

<script src="https://unpkg.com/object_id"></script>

Usage

import objectId from 'object_id'
const id = objectId(obj, options?)

Options

Option Type Default Description
key String '__unique_key_prop' The property name for id.
enumerable Boolean false If the id property is enumerable.

About

Generate unique id for objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published