Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

math min js

const expirationDate = Math.min(...[accessToken?.expiresAt, idToken?.expiresAt, refreshToken?.expiresAt].filter(expiresAt => expiresAt !== undefined);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #math #min #js
ADD COMMENT
Topic
Name
6+1 =