Currently, copyDeep replaces arrays that might contain circular properties with [null]. Instead, I would suggest keeping the items in the array, but only keeping the uri property of those items (e.g. ancestors, narrower, etc.). This would have more value than [null].
We might also add special handling for certain properties if it makes sense. This function is, after all, meant for JSKOS entities.
Breaking change:
Currently,
copyDeep
replaces arrays that might contain circular properties with[null]
. Instead, I would suggest keeping the items in the array, but only keeping theuri
property of those items (e.g.ancestors
,narrower
, etc.). This would have more value than[null]
.We might also add special handling for certain properties if it makes sense. This function is, after all, meant for JSKOS entities.