Constructor
new InternalObjectId(opts)
Build a unique InternalObjectId instance.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Named options to change default behaviours. Properties
|
- Source:
Methods
is(obj) → {boolean}
Is the specified object tagged with this object id?
Parameters:
Name | Type | Description |
---|---|---|
obj |
* | The object to test. |
- Source:
Returns:
If it's tagged or not.
- Type
- boolean
isFunction() → {function}
Generate a function that calls instance.is()
- Source:
Returns:
The wrapper function.
- Type
- function
tag(obj) → {*}
Tag an object with the ObjectId.
Parameters:
Name | Type | Description |
---|---|---|
obj |
* | The object to tag with the unique object id. |
- Source:
Returns:
obj
- Type
- *
untag(obj)
Remove the tag from a tagged object.
Parameters:
Name | Type | Description |
---|---|---|
obj |
* |
- Source: