1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-15 13:08:02 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
nick-w-nick
bbb304f48c Merge 295fe153ad into 138cab4fdc 2025-01-10 20:54:28 -05:00
jbranchaud
138cab4fdc Add Control Media With Drop Keyboard as a Workflow TIL 2025-01-10 16:16:01 -06:00
nick-w-nick
295fe153ad added mention of ES6 compatibility
Hello, I've added a small blockquote below the description to indicate that this method of accessing an indefinite number of function arguments has been superseded by the use of the spread operator via rest parameters for ES6+ compatibility.
2022-01-06 11:39:04 -05:00
2 changed files with 22 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ an array-like object with all of the arguments to the function. Even if not
all of the arguments are referenced in the function signature, they can
still be accessed via the `arguments` object.
> For ES6+ compatibility, the `spread` operator used via [rest parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) is preferred over the `arugments` object when accessing an abritrary number of function arguments.
```javascript
function argTest(one) {
console.log(one);

View File

@@ -0,0 +1,20 @@
# Control Media With Drop Keyboard
I have a [Drop CTRL](https://drop.com/buy/drop-ctrl-v2-mechanical-keyboard)
mechanical keyboard which mostly works like any other keyboard. It also has a
set of functionality that can be accessed via the `fn` (function) key. The
function key can be used to configure the keyboard's LEDs, but I tend to set
and forget that.
Instead, I like to use the function key to control media. That is, adjust the
volume, play and pause, and skip to the next song.
Here is a listing of the ones I use:
- `Fn + Insert` to Pause / Play
- `Fn + PgUp/PgDown` to Increase / Decrease the volume
- `Fn + Del/End` to go to the Previous / Next song
Here is a [full listing of the function
keys](https://drop.com/talk/9382/how-to-configure-your-drop-keyboard) for Drop
keyboards.