Skip to content

Associations

These tables provided to show associations of similar patterns, you don't have to migrate from them

Native

Native@websrhine/stdlib
a == bareSimilar(a, b)
a === bareSame(a, b)
arr.forEach(...)forItems(arr, ...) | forEach(arr, ...)
for (const [k, v] of Object.entries(obj))forValues(obj, ...) | forEach(obj, ...)
structuredClone(data)clone(data)
obj.hasOwnProperty(key)hasOwn(obj, key)

Jest

jest@websrhine/stdlib
expect(a).toEqual(b)areEqual(a, b)