`Js.Dict.unsafeDeleteKey` weird signature

Is there any reason why Js.Dict.unsafeDeleteKey (let unsafeDeleteKey: (. t<string>, string) => unit) uses uncurried style, doesn’t return a boolean like the JS API and only works for string dicts?

1 Like

I guess it was an experiment, considering this description: Experimental internal function

image

Is there any reason to this? It’s been out there for quite some years now and this type is mutable anyway.

1 Like

Maybe @Hongbo could help explain?