Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
424 B
Text
18 lines
424 B
Text
export default function count(values, valueof) {
|
|
let count = 0;
|
|
if (valueof === undefined) {
|
|
for (let value of values) {
|
|
if (value != null && (value = +value) >= value) {
|
|
++count;
|
|
}
|
|
}
|
|
} else {
|
|
let index = -1;
|
|
for (let value of values) {
|
|
if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {
|
|
++count;
|
|
}
|
|
}
|
|
}
|
|
return count;
|
|
}
|