diff --git a/README.md b/README.md index 1b5c500a2..923ee362e 100644 --- a/README.md +++ b/README.md @@ -3210,8 +3210,7 @@ Checks if the current environment is [Travis CI](https://travis-ci.org/). Checks if the current environment has the `TRAVIS` and `CI` environment variables ([reference](https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables)). ```js - -const isTravisCI = ()) => 'TRAVIS' in process.env && 'CI' in process.env; +const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env; ```
diff --git a/docs/index.html b/docs/index.html index a7d6baf94..c5d582434 100644 --- a/docs/index.html +++ b/docs/index.html @@ -648,8 +648,7 @@ hasFlags('-s'); // true hasFlags('test', 'cool=true'); // true hasFlags('--test', 'cool=true', '-s'); // true hasFlags('special'); // false -

isTravisCI

Checks if the current environment is Travis CI.

Checks if the current environment has the TRAVIS and CI environment variables (reference).


-const isTravisCI = ()) => 'TRAVIS' in process.env && 'CI' in process.env;
+

isTravisCI

Checks if the current environment is Travis CI.

Checks if the current environment has the TRAVIS and CI environment variables (reference).

const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
 
isTravisCI(); // true (if code is running on Travis CI)
 

JSONToFile

Writes a JSON object to a file.

Use fs.writeFile(), template literals and JSON.stringify() to write a json object to a .json file.

const fs = require('fs');
 const JSONToFile = (obj, filename) =>
diff --git a/snippets/isTravisCI.md b/snippets/isTravisCI.md
index a38896394..6b7d6d889 100644
--- a/snippets/isTravisCI.md
+++ b/snippets/isTravisCI.md
@@ -5,7 +5,6 @@ Checks if the current environment is [Travis CI](https://travis-ci.org/).
 Checks if the current environment has the `TRAVIS` and `CI` environment variables ([reference](https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables)).
 
 ```js
-
 const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
 ```