Padding Partial String
If we want to pad the partial string, we can’t simply use padStart() to get the result.
If we want to pad the partial string, we can’t simply use padStart() to get the result.
If we want to substring to a specific character, we can’t just use substring() to get the result.
Sometimes we may get an Object with an Array on the parameter. We can use Object and Array destructuring together for the function parameter.
Although we can’t read Excel files on Web API directly, we can use the xlsx package to finish the task.
Sometimes we may get data by the data structure of a Recursive Object. We have to write some recursive functions to find value with these Recursive Objects.
If we use JSON files as configuration for our Web App, we can use fetch() or import to read JSON files in the Browser.
We can upload the file by Web API.
When using fetch() for REST POST, we can easily prepare Body Object by Web API.
Since Chrome is bad, we often use Brave to replace Chrome for development. We can still use Brave to preview on WebStorm.
If data is an Object, we can use Object.entries, map and join to convert Object into Query String.