import { isYesterday } from "https://deno.land/x/date_fns@v2.0.0-alpha.34/index.js";
Examples
// If today is 6 October 2014, is 5 October 14:00:00 yesterday?
var result = isYesterday(new Date(2014, 9, 5, 14, 0))
//=> true
// If today is 6 October 2014, is 5 October 14:00:00 yesterday? var result = isYesterday(new Date(2014, 9, 5, 14, 0)) //=> true