Skip to content

Commit

Permalink
🧪 fix keys() example
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Jan 13, 2025
1 parent ea2e779 commit 3f23a8e
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions playground/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,32 +296,26 @@ examples.make(() => {

examples.make(() => {
// options.keys
ii(
[
{
model: 'MacBook Air 13"',
year: new Date(2020, 10, 23),
price: { currency: "USD", amount: 999 },
owner: "astoilkov",
},
{
model: 'MacBook Air 15"',
year: new Date(2023, 9, 18),
price: { currency: "USD", amount: 1299 },
owner: "erusev",
},
{
model: 'MacBook Pro 13"',
year: new Date(2019, 11, 2),
price: { currency: "USD", amount: 1499 },
owner: "astoilkov",
},
],
ii.depth(3).keys("price", "year", "amount")([
{
depth: 3,
keys: ["price", "year", "amount"],
model: 'MacBook Air 13"',
year: new Date(2020, 10, 23),
price: { currency: "USD", amount: 999 },
owner: "astoilkov",
},
);
{
model: 'MacBook Air 15"',
year: new Date(2023, 9, 18),
price: { currency: "USD", amount: 1299 },
owner: "erusev",
},
{
model: 'MacBook Pro 13"',
year: new Date(2019, 11, 2),
price: { currency: "USD", amount: 1499 },
owner: "astoilkov",
},
]);
});

examples.make(() => {
Expand Down

0 comments on commit 3f23a8e

Please sign in to comment.