1,217 karma · joined May 22, 2011
I tried searching and could not find any iteraction between us: https://github.com/search?q=commenter%3Afluffynuts+author%3A...
- This app can make it the default behavior. - That menu item is not available in all apps. - The keyboard shortcut is hard to remember and type. - In some apps, like Chrome, the keyboard shortcut is different. - This app can exclude certain apps, preserve links, and also remove tracking parameters from URLs.
Node.js released initial ESM support [1] in Node.js 12.17 in May 2020, 2 years later (!), TypeScript finally added support for ESM [2].
Here's a straight forward guide on how to use TypeScript with ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3...
[1]: https://nodejs.org/en/blog/release/v12.17.0
[2]: https://devblogs.microsoft.com/typescript/announcing-typescr...
Correct spec: https://tc39.es/ecma262/multipage/indexed-collections.html#s...
Steps 14.g.i to 14.g.ix detail the transfer of data from the original TypedArray (O) to the new TypedArray (A). It involves reading values from the original and writing them to the new array's buffer, effectively duplicating the data segment. The process ensures both arrays are distinct with separate memory spaces.
Changing method behavior in subclasses is part of inheritance, but it shouldn't confuse or mislead. In the case of Buffer and Uint8Array, the altered `.slice()` functionality isn't a mere implementation detail; it's a significant deviation. This inconsistency can lead to unexpected bugs, especially for those who assume similar behavior based on the inheritance hierarchy. It's crucial for reliability that such fundamental behaviors remain predictable across subclasses.
- File: Like a Blob, but with additional file-specific properties (e.g., filename).
- ArrayBuffer: Fixed-length raw binary data in JavaScript, not directly accessible.
- Uint8Array: Interface for reading/writing binary data in ArrayBuffer, showing them as 8-bit unsigned integers.
- Buffer: Readable/writable raw binary data container in Node.js (subclass of Uint8Array)
Examples of this are frames in the browser and the `vm` module in Node.js.
Buffer is a subclass of Uint8Array.
Feel free to copy-paste the function to your own code base if you don't want the dependency:
``` const objectToString = Object.prototype.toString;
export function isUint8Array(value) { return value && objectToString.call(value) === '[object Uint8Array]'; } ```
I also provide a package to make the transition easier: https://github.com/sindresorhus/uint8array-extras (Feel free to copy-paste the code if you don't want another dependency)
Even if I wanted to integrate with Reminders, it wouldn't work that well. The app would have to be running to synchronoize with Reminders. This means the widget would not update if you made changes in the Reminders app and One Task was not running.