ECMAScript "ToPrimitive" algorithm. Provides ES5 and ES6/ES2015 versions.
-
Updated
Oct 27, 2022 - JavaScript
ECMAScript "ToPrimitive" algorithm. Provides ES5 and ES6/ES2015 versions.
Converts a JavaScript object to a primitive value.
Add a description, image, and links to the toprimitive topic page so that developers can more easily learn about it.
To associate your repository with the toprimitive topic, visit your repo's landing page and select "manage topics."