Skip to content

Commit

Permalink
docs: add docstring for isDevelopment
Browse files Browse the repository at this point in the history
  • Loading branch information
Nat Dean-Lewis committed Jan 15, 2025
1 parent 40b5741 commit 142e0bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/helpers/https-agent.helper.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Checks if the current environment is development based on the NODE_ENV environment variable.
*
* @returns {boolean} `true` if `NODE_ENV` is set to `'development'`, otherwise `false`.
*/
export const isDevelopment = (): boolean => {
return process.env.NODE_ENV == 'development' ? true : false;
};

0 comments on commit 142e0bc

Please sign in to comment.