Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const base = require("./video_library");
const borrow_rated = (customer, video) => {
if(customer.age < video.rating.minAge){
throw "Customer is too young for this title";
}
return base(customer, video);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.