Associations
These tables provided to show associations of similar patterns, you don't have to migrate from them
Native
Native | @websrhine/stdlib |
---|---|
a == b | areSimilar(a, b) |
a === b | areSame(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) |