Skip to content

Commit

Permalink
fix tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
noamokman committed Dec 18, 2023
1 parent c8c88dc commit 95207bb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@ import getWeather from 'get-weather'; // Not a real module
const places = [
getCapital('Norway').then(info => info.name),
'Bangkok, Thailand',
'Berlin, Germany',
'Tokyo, Japan',
];
'Bangkok, Thailand',
'Berlin, Germany',
'Tokyo, Japan',
];
const filterer = async place => {
const weather = await getWeather(place);
return weather.temperature > 30;
};
const filterer = async place => {
const weather = await getWeather(place);
return weather.temperature > 30;
};
const result = await pFilterIterable(places, filterer);
const result = await pFilterIterable(places, filterer);
console.log(result);
//=> ['Bangkok, Thailand']
console.log(result);
//=> ['Bangkok, Thailand']
```
*/
export function pFilterIterable<ValueType>(
Expand Down

0 comments on commit 95207bb

Please sign in to comment.