swear icon indicating copy to clipboard operation
swear copied to clipboard

🙏 Flexible promise handling with Javascript

Results 2 swear issues
Sort by recently updated
recently updated
newest added

Add the `.pipe()` function for plain operations such as JSON.parse() and arithmetic: ```js // Currently: const raw = await swear(fetch('/price')).json(); const price = raw * 0.9; // Proposed API: const...

This mapping of an array into a new one: https://github.com/franciscop/swear/blob/bb6d8ff22437180abe4b37a935106125fedf4956/index.js#L12 Makes this code not to work properly: ```js const arr = []; arr.hello = 'world'; console.log(arr.hello); // "world" const arr2...

bug