shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
cyclic
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.is
This function check if the passed object has circular dependencies and if so, returns where it has been found in the object
Params
- object*-Object
The object to check
Return
- -String|false
false if all is ok, a string that tells where the circular dep has been found if not
Example
import { isCyclic } from '@blackbyte/sugar/is';
const obj = { hello: 'world' };
obj.cyclic = obj;
isCyclic(obj);Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space