Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isEdible() {
- if (this.expirationDate > Date.now()
- && this.approvedForConsumption === true
- && this.inspectorId !== null) {
- this.edibilityChecked = true;
- return true;
- } else {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement