CSS tip for Windows High Contrast Mode:
Use `currentColor` for properties used for visual semantics, and then swap to `CanvasText` within the `-ms-high-contrast` media query.
@CodePen with extended example including a gradient:
Laravel tip of the day: if you want to ensure that your Route parameter is a number, you can add a regex rule directly in the routes/web.php https://t.co/FZFZumKzdx
👀 Did you know you can pass an optional column to the Eloquent builder latest() method? https://t.co/xvb93iIlc2
Quick Laravel tip: if you want to have a custom validation rule but it's a short one-liner, you may specify it directly in the $rules array, as a callback function. https://t.co/su7vUvZTM4
🔥 You can submit forms from a button outside of the form tag by using the form attribute https://t.co/72pjoWu5Ll
Sometimes you end up with a lot of Providers in React.
It can make your root component quite nested and hard to read.
Use this utility function to combine a list of Providers into a single Provider.
👉 https://t.co/lSXJAm9gdV https://t.co/NW5EdVjThU
If you've been working with the AWS SDK for Node.js, you probably know that the DynamoDB client returns entries in a quite annoying format.
Use this utility function to unwrap it into a normal-shaped object.
👉 https://t.co/uou6cBvO9d https://t.co/Jub2m8kb4p
Deep Freeze an object.
👉 https://t.co/Bp68tjlV2V https://t.co/xwA7UBxdwl
Create a deep clone of an object.
It does exactly what you would expect - creating a copy of an object, without any pointers to the original object.
👉 https://t.co/rMUiyKrKbi https://t.co/f2G9pG8hLH
Get the last item of either an Array, Set, Map or object.
Great for quickly accessing the last item dynamically without having to make any transformation.
👉 https://t.co/oOU2wi2uAD https://t.co/UxTpsrzxLo