Warlockk
Warlockk
DDeno
Created by Warlockk on 5/29/2024 in #help
I can't write Uint32Array on a file.
Sorry, here is a minimal example:
import { writeFileSync } from "node:fs";

writeFileSync('.data.bin', Uint32Array.from([1, 2, 3]));
import { writeFileSync } from "node:fs";

writeFileSync('.data.bin', Uint32Array.from([1, 2, 3]));
command:
deno run --allow-all main.ts
deno run --allow-all main.ts
3 replies
DDeno
Created by bbqchickenrobot on 4/17/2024 in #help
Deno CLI Broken
I did try it and it works fine with WSL, but not on Windows. Tried on git bash console and normal terminal
11 replies
DDeno
Created by Warlockk on 4/23/2024 in #help
Is this correct for Javascript?
Thanks for the reply, i actually i'm not sure if i'm wrong I think that do use of .clone() to create a new mutable instance is the correct way to handle mutations with Tuples If not, a better way could be create a new mutable common Array instance of the tuple, using Array.from If we're talking about performance issues, to avoid the 2 steps (creation/modification) the .clone() method could receive a "mutator". .clone(Array.prototype.reverse) or a enum value .clone(MutationType.Reversed)
11 replies
DDeno
Created by Warlockk on 4/23/2024 in #help
Is this correct for Javascript?
Thanks, i love you
11 replies
DDeno
Created by Warlockk on 3/18/2024 in #help
Visual Studio Code Deno does not use node types
It still does not works
4 replies