appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: new Set () returns empty object {} instead of array

Open GreenFlux opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

The new Set() operator is returning an empty object instead of an array.

Steps To Reproduce

export default {
	
	newSetTest () {
		return new Set(["test", "test","1","2","3"])
	}
	
}

This should return: {"test","1","2","3"}

but it returns an empty object. Screenshot 2024-09-09 at 8 56 51 PM

Screenshot 2024-09-09 at 8 55 21 PM

Public Sample App

No response

Environment

Production

Severity

Low (Cosmetic UI issues)

Issue video log

No response

Version

v1.40

GreenFlux avatar Sep 10 '24 00:09 GreenFlux