Comments (1)
map
returns an array. When an array is stringified, it becomes the elements joined with ,
. I don't know what there is to document here:
Template literals coerce their expressions directly to strings,
Objects are first converted to a primitive by calling its
[@@toPrimitive]()
(with "string" as hint), toString(), and valueOf() methods, in that order. The resulting primitive is then converted to a string.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map:
A new array with each element being the result of the callback function.
The toString method of arrays calls join() internally, which joins the array and returns one string containing each array element separated by commas.
from content.
Related Issues (20)
- `Content-type` -> `Content-Type` casing errata HOT 2
- Slightly misleading example in DOMTokenList: remove() method
- Click event: not any focusable element triggers a click when enter/space is pressed HOT 4
- "Web Components" should be removed from "Web technology for developers" page HOT 4
- awkward sentence HOT 1
- Mention tab-size in white-space HOT 2
- getBoundingClientRect().width is not the same as scrollWidth HOT 7
- <output>: use event listener instead of oninput attribute
- Bad Example on Javascript Documentation HOT 1
- Blob example not working HOT 1
- Bundlers recommend worker URLs to be fully resolved HOT 2
- First example on relative CSS colors is broken HOT 1
- Django tutorial - needs a signup page
- The Permitted content of the <summary> element has not been updated.
- Request's mode incorrectly documented
- Hi
- Whitespace is not insignificant in HTMLImageElement.srcset HOT 4
- Incorrect fact in the NaN Page HOT 2
- standalone display not working, https required? HOT 1
- The page "Using IndexedDB" confusingly uses the outdated property "errorCode"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from content.