Skip to content

Commit

Permalink
docs: better types for other docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerAberbach committed Nov 19, 2024
1 parent 4087428 commit 87e733a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const FEATURES: readonly FeatureItem[] = [
import { filter, flatMap, map, pipe, reduce, toGrouped, toMap, toSet } from 'lfi'
import zoo from 'zoo'
const getSlothNamesByAge = zoo =>
const getSlothNamesByAge = () =>
pipe(
zoo.exhibits,
flatMap(exhibit => exhibit.animals),
Expand All @@ -162,7 +162,7 @@ const FEATURES: readonly FeatureItem[] = [
reduce(toGrouped(toSet(), toMap())),
)
console.log(getSlothNamesByAge(zoo))
console.log(getSlothNamesByAge())
//=> Map(3) {
//=> 7 => Set(2) { 'strawberry', 'bitsy' },
//=> 19 => Set(1) { 'max' },
Expand Down

0 comments on commit 87e733a

Please sign in to comment.