Skip to content

Commit

Permalink
Use TypeScript in all README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jul 19, 2023
1 parent d64e0e7 commit 1230513
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,14 @@ Check if a number is a valid Australian postcode.

## Examples

```js
> isValidAustralianPostcode('0872');
< true
```ts
isValidAustralianPostcode('0872'); // true

> isValidAustralianPostcode(872);
< true
isValidAustralianPostcode(872); // true

> isValidAustralianPostcode('0112');
< false
isValidAustralianPostcode('0112'); // false

> isValidAustralianPostcode('12345');
< false
isValidAustralianPostcode('12345'); // false
```

## License
Expand Down

0 comments on commit 1230513

Please sign in to comment.