Archived
1
0

refactor: add note to test.sh about --home

This commit is contained in:
Joe Previte
2021-02-04 14:54:26 -07:00
parent 2dc56ad4d7
commit d0eece3d8f
3 changed files with 10 additions and 6 deletions

View File

@ -140,8 +140,8 @@ export interface Cookie {
* Checks if a cookie exists in array of cookies
*/
export function checkForCookie(cookies: Array<Cookie>, key: string): boolean {
// Check for at least one cookie where the name is equal to key
return cookies.filter((cookie) => cookie.name === key).length > 0
// Check for a cookie where the name is equal to key
return Boolean(cookies.find((cookie) => cookie.name === key))
}
/**