[Pas2js] Object literals?

Ryan Joseph ryan at thealchemistguild.com
Sun Jun 3 04:55:41 CEST 2018


can you make object literals (I think that’s what they’re called)/associative arrays/dictionaries in pas2js? Somehow I didn’t come across that in the short time I used it. I know I can make a record but it should be possible using JSArray I thought (I was told the index of an array can be a string or other type).

d = { items: [], text: '’ };

Regards,
	Ryan Joseph



More information about the Pas2js mailing list