^ +word1(.|\n)*?word2\n
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions | |
| // - XState (all XState exports) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DKYMEJ88UQ9LB6HW6MDRR4PHJF6W74LCNRXK4VSXBC2K7PUJ7GN4CKCCDYV76DZ97HCXUJQ4FNBQ7LTADC8AZTT5VN4HPFP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="An RxJS 6.2.1 bin"> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <button id="button">A button</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { lensProp, lensPath, view, set, over, toUpper } from "ramda" | |
| const me = { | |
| firstName: "Sébastien", | |
| lastName: "Nicolaïdis", | |
| birthDate: new Date("1979-09-13T15:00Z"), | |
| age: 38, | |
| hobbies: ["Rock climbing", "Horse riding", "Chess"], | |
| parents: { | |
| brother: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| nth, | |
| slice, | |
| contains, | |
| head, | |
| last, | |
| tail, | |
| init, | |
| length, | |
| take, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { compose, inc, prop, assoc, evolve, always, add } from "ramda" | |
| const nextAge = compose( | |
| inc, | |
| prop("age"), | |
| ) | |
| console.log("nextAge", nextAge({ age: 21 })) | |
| const celebrateBirthday = person => assoc("age", nextAge(person), person) | |
| const person = { age: 24 } | |
| console.log("celebrateBirthday", celebrateBirthday(person)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { assoc, assocPath, dissoc, dissocPath, omit, compose, inc, prop } from "ramda" | |
| const original = { | |
| a: "Bingo", | |
| b: { | |
| c: "Bingo", | |
| d: "Bingo", | |
| }, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { has, path, propOr, pathOr, keys, values } from "ramda" | |
| const one = { | |
| a: "Bingo", | |
| b: { | |
| c: "Bingo", | |
| }, | |
| } | |
| const two = { |
NewerOlder