Skip to content

Tag: iteration

Export some properties from the nested object

Let’s say there is an object that looks like this: Now I would like to export some of the nested values so that it can be used in various files across the app (exporting the entire object is not an option). What we could do is manually create all the required variables and export them like this: The pro…

How to iterate over over all Unicode characters?

Is it possible to iterate over all Unicode characters (UTF-8)? Thanks! I’ve tried using: But I’m not sure how to implement it. Answer According to the docs, the parameter passed to String.fromCharCode(a) is converted calling ToUint16 and then said character is returned. You may call it with any nu…