Skip to content

Commit

Permalink
✏️ update consoleTable() example
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Mar 1, 2024
1 parent fe2e6ce commit 9961656
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,23 @@ npm install console-powers
</picture>

```ts
consolePrint(
consoleTable([
{
model: 'MacBook Air 13"',
year: new Date(2020, 10, 23),
price: 999,
},
{
model: 'MacBook Air 15"',
year: new Date(2023, 9, 18),
price: 1299,
},
{
model: 'MacBook Pro 13"',
year: new Date(2019, 11, 2),
price: 1499,
},
]),
);
consoleTable([
{
model: 'MacBook Air 13"',
year: new Date(2020, 10, 23),
price: 999,
},
{
model: 'MacBook Air 15"',
year: new Date(2023, 9, 18),
price: 1299,
},
{
model: 'MacBook Pro 13"',
year: new Date(2019, 11, 2),
price: 1499,
},
])
```

### `consoleInspect()`
Expand Down

0 comments on commit 9961656

Please sign in to comment.