Skip to content

Commit

Permalink
is: add edge
Browse files Browse the repository at this point in the history
  • Loading branch information
gricey432 committed Nov 6, 2018
1 parent 997e016 commit 2240469
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions types/is/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,11 @@ interface IsStatic {
*/
ie(value?: number): boolean;

/**
* Checks if current browser is edge.
*/
edge(): boolean;

/**
* Checks if current browser is chrome.
*/
Expand Down
5 changes: 4 additions & 1 deletion types/is/is-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ is.ie();
is.ie(6);
is.not.ie();

is.edge();
is.not.edge();

is.chrome();
is.not.chrome();

Expand Down Expand Up @@ -664,4 +667,4 @@ is.url('quack');
var customName = is.setNamespace();
customName.odd(3);

//#endregion
//#endregion

0 comments on commit 2240469

Please sign in to comment.