Skip to content

Commit

Permalink
🔨 move lodash imports to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Nov 7, 2023
1 parent 8f36fae commit 3863877
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ import {
get,
Bounds,
FontFamily,
dropWhile,
dropRightWhile,
} from "@ourworldindata/utils"
import { TextWrap } from "../TextWrap/TextWrap.js"
import fromMarkdown from "mdast-util-from-markdown"
import type { Root, Content } from "mdast"
import { match } from "ts-pattern"
import { dropRightWhile, dropWhile } from "lodash"

const SUPERSCRIPT_NUMERALS = {
"0": "\u2070",
Expand Down
4 changes: 4 additions & 0 deletions packages/@ourworldindata/utils/src/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
debounce,
difference,
drop,
dropRightWhile,
dropWhile,
escapeRegExp,
extend,
findLastIndex,
Expand Down Expand Up @@ -76,6 +78,8 @@ export {
debounce,
difference,
drop,
dropRightWhile,
dropWhile,
escapeRegExp,
extend,
findLastIndex,
Expand Down
2 changes: 2 additions & 0 deletions packages/@ourworldindata/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ export {
debounce,
difference,
drop,
dropRightWhile,
dropWhile,
extend,
findLastIndex,
flatten,
Expand Down

0 comments on commit 3863877

Please sign in to comment.