Answers for "js get string byte size"

0

js get string byte size

// JavaScript
(new Blob(['20€'])).size;		// 5

// Node js
Buffer.from('20€').length;	// 5
Posted by: Guest on July-17-2020
0

js byte size

(new Blob(['20€'])).size;	// 5
Posted by: Guest on July-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language