An entity that supports being passed as an argument, is mutable, can be assigned to a variable or returned from a function.
For example:
function sumOperation(values){
const total = 0;
values.forEach(x=> total += x);| echo off | |
| git add . | |
| git commit -m "%*" | |
| git push |
| { | |
| "dependencies": { | |
| "com.unity.2d.sprite": "1.0.0", | |
| "com.unity.2d.tilemap": "1.0.0", | |
| "com.unity.ads": "2.0.8", | |
| "com.unity.analytics": "3.3.2", | |
| "com.unity.collab-proxy": "1.2.16", | |
| "com.unity.ext.nunit": "1.0.0", | |
| "com.unity.ide.rider": "1.1.0", | |
| "com.unity.ide.visualstudio": "1.0.11", |
An entity that supports being passed as an argument, is mutable, can be assigned to a variable or returned from a function.
For example:
function sumOperation(values){
const total = 0;
values.forEach(x=> total += x);| this.filteredItems = this.listOfItems.filter(textToMatch => { | |
| let regExMatch = new RegExp(sourceText.toLowerCase(), "g"); | |
| const result = textToMatch.toLowerCase().match(regExMatch) | |
| return result != null && result.length > 0; | |
| }); |
| for /R "C:\source\" %%G in (*.png *.jpg *.jpeg *.gif *.svg) do copy "%%G" "C:\target\" |
| for /R "C:\source\" %%G in (*.png *.jpg *.jpeg *.gif *.svg) do copy "%%G" "C:\target\" |
Navigate to the folder where you would like to store node_modules. In this example I will use the %userprofile% shortcut.
I am building an Angular app. So in another temp directory I created a dummy app and copied it's package.json and its node_modules folder into my User Profile directory.
Create a cmd file that contains the following.
mklink "./node_modules" "%userprofile%/node_modules"
Now you can run that command anywhere you need those node_modules.
Why would you need this? Perhaps you need to build libraries for an old app. This way you can get all of the correct packages (and their peer dependencies) without installing an old version of the CLI globally.
First delete the global version of Angular CLI (this step sucks, I know...)
npm uninstall -g @angular/cliNext use NPX to run any version of the CLI that you need. In this case, version 6.0.1 (Angular v6 has an issue with RXJS, you will need to change the rxjs version from "^6.0.0" to "6.0.0" in packages.json and reinstall it with npm.)
npx -p @angular/[email protected] ng new hello-world| ng config -g cli.packageManager yarn |