5 Things You Should Know About ES8
ECMAScript 2017 8th editon (ES2017/ES8) has been officially released and published a few weeks ago, let’s figure it out some important changes. All of these are available with Node 8 and with the latest version of browsers without babel or any polyfills.
Object.values
Like Object.keys, but for values.
Such as Object.keys
do, the Object.values
method returns an array of a given object’s own enumerable property values instead of keys.
Object.entries
If we merged Object.keys and Object.values, that would be Object.entries. It return an array of [key, value].
The Object.entries()
method returns an array of a given object's own enumerable property [key, value]
padStart
Pad a string from the start until the given length is reached.
The padStart()
method pads the current string with another string (repeated, if needed) so that the resulting string reaches the given length. The padding is applied from the start (left) of the current string.
padEnd
Pad a string from the end until the given length is reached.
The padEnd()
method pads the current string with a given string (repeated, if needed) so that the resulting string reaches a given length. The padding is applied from the end (right) of the current string.
padThai
Trailing commas in function parameter lists
Enjoy ES2017!
相關推薦
5 Things You Should Know About ES8
ECMAScript 2017 8th editon (ES2017/ES8) has been officially released and published a few weeks ago, let’s figure it out some important changes. All of thes
Some interesting things you should know
Electron+Vue構建桌面應用 準備 nodejs 配置npm國內映象 # 淘寶npm映象 npm config set registry https://registry.npm.taobao.org # 檢視版本,檢查是否安裝成功 node -v
What You Should Know About the New Climate Change Report
What You Should Know About the New Climate Change ReportWe have the technological capability to stop our earth from warming further. But it looks like that
5 Things You Need to Know About Diversity and Inclusion in Design
In New York, for example, attendees got an exclusive sneak peek of the upcoming Stark plug-in for Adobe XD, which will let you check your design prototypes
10 Advanced Bing Search Tricks You Should Know
dia page layers main.c player arch trick should face Exclude Websites From Bing Search: wikipedia -wikipedia.org Excluding Keywords From
What every programmer should know about memory (Part 2-0) 譯
What Every Programmer Should Know About Memory Ulrich Drepper Red Hat, Inc. [email protected] November 21, 2007 2 Commodity Hardware
What every programmer should know about memory (Part 1) 譯
What Every Programmer Should Know About Memory Ulrich Drepper Red Hat, Inc. [email protected] November 21, 2007 Abstract As CPU cor
What every programmer should know about memory (Part 2-2) 譯
What Every Programmer Should Know About Memory Ulrich Drepper Red Hat, Inc. [email protected] November 21, 2007 2.2 DRAM Access Tech
9 Decision Types You Should Know
9 Decision Types You Should KnowThere is no one ‘right’ decision-making protocol — different contexts call for different approaches. We need a shared vocab
FireBase: Things you must know to avoid wasting time as a Beginner
Custom DomainYou have bought a new domain and now you want to use it for Firebase hosting.Setting up custom domain can be tricky based on your domain regis
Top Machine Learning Algorithms You Should Know to Become a Data Scientist
There are two ways to categorize Machine Learning algorithms you may come across in the field. Generally, both approaches are useful. However, we will focu
7 Bots Every Telegram Channel Owner Should Know About
7 Bots Every Telegram Channel Owner Should Know AboutTelegram channels are a tool for broadcasting your messages to large audiences. Telegram channels appe
5 things you can do in CSS
In addition to traditional CSS, you also have inline styles and CSS-in-JS as options for styling a React application.With inline styles, you pass a JavaScr
What is NPS? And why you should know how it works
NPS, therefore ranges from -100 to +100.It looks complicated, but it is very easy and it will be explained below.The calculations:In the example below, the
Ask HN: Mojave, anything developers should know about before upgrading?
From what I've seen around the web, this upgrade seems less problematic than previous years, but has anyone spotted any gotchas that other developers could
7 Types of Regression Techniques you should know
This article was posted by Sunil Ray. Sunil is a Business Analytics and Intelligence professional with deep experience in the Indian Insurance industry. Li
字元、字符集、編碼——Something Every Programmer Should Know About
看完《Joel on software》上的《The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (N
5 industrial iot things to know about retirement in Germany
www.inhandnetworks.de Every year, thousands of pensioners move abroad to retire in another country and Germany is no exception. These are the 5 mo
5 key th Industrie Computer ings you need to know about German working culture
www.inhandnetworks.de If you’re keen on moving here for work and want a heads up on the cultural differences in the German workplace, we’ve spoken