Skip to content

Commit 0404ea1

Browse files
committed
chore@small
1 parent fff02de commit 0404ea1

File tree

12 files changed

+49
-25
lines changed

12 files changed

+49
-25
lines changed

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function addProp(key, value) {
215215
<summary><strong>Tests</strong></summary>
216216

217217
```javascript
218-
import { addProp } from "./addProp.js"
218+
import { addProp } from './addProp.js'
219219

220220
test('happy', () => {
221221
const result = addProp('a', 1)({ b: 2 })
@@ -325,8 +325,8 @@ export function addPropToObjects (
325325
<summary><strong>Tests</strong></summary>
326326

327327
```javascript
328-
import { pipe } from "./pipe.js"
329-
import { addPropToObjects } from "./addPropToObjects.js"
328+
import { pipe } from './pipe.js'
329+
import { addPropToObjects } from './addPropToObjects.js'
330330

331331
test('R.addPropToObjects', () => {
332332
let result = pipe(
@@ -6630,7 +6630,7 @@ mapChain<T extends IterableContainer, U, V>(
66306630
<summary><strong>R.mapChain</strong> source</summary>
66316631

66326632
```javascript
6633-
import { mapFn } from "./map.js";
6633+
import { mapFn } from './map.js';
66346634

66356635
export function mapChain(...fns) {
66366636
return list => {
@@ -6787,7 +6787,7 @@ export function mapKeys(fn) {
67876787
<summary><strong>Tests</strong></summary>
67886788

67896789
```javascript
6790-
import { mapKeys } from "./mapKeys.js"
6790+
import { mapKeys } from './mapKeys.js'
67916791

67926792
test('happy', () => {
67936793
const result = mapKeys((prop, x) => `${ prop }-${x}`)({a:1, b: 2 })
@@ -9905,7 +9905,7 @@ test('with undefined', () => {
99059905
<summary><strong>TypeScript</strong> test</summary>
99069906

99079907
```typescript
9908-
import { pipe, pluck } from "rambda";
9908+
import { pipe, pluck } from 'rambda';
99099909

99109910
it("R.pluck", () => {
99119911
const input = [
@@ -11424,7 +11424,7 @@ sortByDescending<T>(sortFn: (x: T) => Ord): (list: T[]) => T[];
1142411424
<summary><strong>R.sortByDescending</strong> source</summary>
1142511425

1142611426
```javascript
11427-
import { sortByFn } from "./sortBy.js";
11427+
import { sortByFn } from './sortBy.js';
1142811428

1142911429
export function sortByDescending(sortFn) {
1143011430
return list => sortByFn(sortFn, list, true)
@@ -12184,6 +12184,18 @@ test('happy', () => {
1218412184
switcher<T extends unknown>(valueToMatch: T): Switchem<T>
1218512185
```
1218612186

12187+
```javascript
12188+
const list = [1, 2, 3]
12189+
12190+
const result = switcher(list.length)
12191+
.is(x => x < 2, 4)
12192+
.is(x => x < 4, 6)
12193+
.default(7)
12194+
// => 6
12195+
```
12196+
12197+
<a title="redirect to Rambda Repl site" href="https://rambda.netlify.app?const%20list%20%3D%20%5B1%2C%202%2C%203%5D%0A%0Aconst%20result%20%3D%20switcher(list.length)%0A%09.is(x%20%3D%3E%20x%20%3C%202%2C%204)%0A%09.is(x%20%3D%3E%20x%20%3C%204%2C%206)%0A%09.default(7)%0A%2F%2F%20%3D%3E%206">Try this <strong>R.switcher</strong> example in Rambda REPL</a>
12198+
1218712199
<details>
1218812200

1218912201
<summary>All TypeScript definitions</summary>

docs/README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function addProp(key, value) {
215215
<summary><strong>Tests</strong></summary>
216216

217217
```javascript
218-
import { addProp } from "./addProp.js"
218+
import { addProp } from './addProp.js'
219219

220220
test('happy', () => {
221221
const result = addProp('a', 1)({ b: 2 })
@@ -325,8 +325,8 @@ export function addPropToObjects (
325325
<summary><strong>Tests</strong></summary>
326326

327327
```javascript
328-
import { pipe } from "./pipe.js"
329-
import { addPropToObjects } from "./addPropToObjects.js"
328+
import { pipe } from './pipe.js'
329+
import { addPropToObjects } from './addPropToObjects.js'
330330

331331
test('R.addPropToObjects', () => {
332332
let result = pipe(
@@ -6630,7 +6630,7 @@ mapChain<T extends IterableContainer, U, V>(
66306630
<summary><strong>R.mapChain</strong> source</summary>
66316631

66326632
```javascript
6633-
import { mapFn } from "./map.js";
6633+
import { mapFn } from './map.js';
66346634

66356635
export function mapChain(...fns) {
66366636
return list => {
@@ -6787,7 +6787,7 @@ export function mapKeys(fn) {
67876787
<summary><strong>Tests</strong></summary>
67886788

67896789
```javascript
6790-
import { mapKeys } from "./mapKeys.js"
6790+
import { mapKeys } from './mapKeys.js'
67916791

67926792
test('happy', () => {
67936793
const result = mapKeys((prop, x) => `${ prop }-${x}`)({a:1, b: 2 })
@@ -9905,7 +9905,7 @@ test('with undefined', () => {
99059905
<summary><strong>TypeScript</strong> test</summary>
99069906

99079907
```typescript
9908-
import { pipe, pluck } from "rambda";
9908+
import { pipe, pluck } from 'rambda';
99099909

99109910
it("R.pluck", () => {
99119911
const input = [
@@ -11424,7 +11424,7 @@ sortByDescending<T>(sortFn: (x: T) => Ord): (list: T[]) => T[];
1142411424
<summary><strong>R.sortByDescending</strong> source</summary>
1142511425

1142611426
```javascript
11427-
import { sortByFn } from "./sortBy.js";
11427+
import { sortByFn } from './sortBy.js';
1142811428

1142911429
export function sortByDescending(sortFn) {
1143011430
return list => sortByFn(sortFn, list, true)
@@ -12184,6 +12184,18 @@ test('happy', () => {
1218412184
switcher<T extends unknown>(valueToMatch: T): Switchem<T>
1218512185
```
1218612186

12187+
```javascript
12188+
const list = [1, 2, 3]
12189+
12190+
const result = switcher(list.length)
12191+
.is(x => x < 2, 4)
12192+
.is(x => x < 4, 6)
12193+
.default(7)
12194+
// => 6
12195+
```
12196+
12197+
<a title="redirect to Rambda Repl site" href="https://rambda.netlify.app?const%20list%20%3D%20%5B1%2C%202%2C%203%5D%0A%0Aconst%20result%20%3D%20switcher(list.length)%0A%09.is(x%20%3D%3E%20x%20%3C%202%2C%204)%0A%09.is(x%20%3D%3E%20x%20%3C%204%2C%206)%0A%09.default(7)%0A%2F%2F%20%3D%3E%206">Try this <strong>R.switcher</strong> example in Rambda REPL</a>
12198+
1218712199
<details>
1218812200

1218912201
<summary>All TypeScript definitions</summary>

source/addProp.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addProp } from "./addProp.js"
1+
import { addProp } from './addProp.js'
22

33
test('happy', () => {
44
const result = addProp('a', 1)({ b: 2 })

source/addPropToObjects.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { pipe } from "./pipe.js"
2-
import { addPropToObjects } from "./addPropToObjects.js"
1+
import { pipe } from './pipe.js'
2+
import { addPropToObjects } from './addPropToObjects.js'
33

44
test('R.addPropToObjects', () => {
55
let result = pipe(

source/mapChain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mapFn } from "./map.js";
1+
import { mapFn } from './map.js';
22

33
export function mapChain(...fns) {
44
return list => {

source/mapKeys.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mapKeys } from "./mapKeys.js"
1+
import { mapKeys } from './mapKeys.js'
22

33
test('happy', () => {
44
const result = mapKeys((prop, x) => `${ prop }-${x}`)({a:1, b: 2 })

source/pluck-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { pipe, pluck } from "rambda";
1+
import { pipe, pluck } from 'rambda';
22

33
it("R.pluck", () => {
44
const input = [

source/sortByDescending.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sortByFn } from "./sortBy.js";
1+
import { sortByFn } from './sortBy.js';
22

33
export function sortByDescending(sortFn) {
44
return list => sortByFn(sortFn, list, true)

source/sum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export function sum(list){
22
return list.reduce((acc, cur) => acc + cur, 0)
3-
}
3+
}

src/mapChain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mapFn } from "./map.js";
1+
import { mapFn } from './map.js';
22

33
export function mapChain(...fns) {
44
return list => {

0 commit comments

Comments
 (0)