safe-touch icon indicating copy to clipboard operation
safe-touch copied to clipboard

⛓ Runtime optional chaining for JS

Results 2 safe-touch issues
Sort by recently updated
recently updated
newest added

What are the benefits of this library over optional chaining? For example: ``` const a = { b: { c: 1 } } console.log(a?.b?.c) // 1 console.log(a?.d?.c) // undefined -...

```js const a = { _b: 1, b() { return this._b } } console.log(a.b()) // 1 console.log(safeTouch(a).b()()) // undefined or type error (strict mode) ```