7.5.114 • Published 11 months ago

@devtea2026/placeat-repellat-earum-hic v7.5.114

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Tinkoff Utils Build status Coverage Status

Fast, small and purely functional utility library

Install

$ npm install @devtea2026/placeat-repellat-earum-hic

Features

Structure of the library

  • /object – for objects
  • /string – for strings
  • /promise – for promises
  • /array – for arrays or array-like objects
  • /function – for functions – composition, currying and so on, also a set of simple functions (noop, T, F)
  • /is – set of type checking methods
  • / – root contains utilities which don't satisfy any of the above categories or are universal

Usage

import pathOr from '@devtea2026/placeat-repellat-earum-hic/object/pathOr';
import compose from '@devtea2026/placeat-repellat-earum-hic/function/compose';
import toLower from '@devtea2026/placeat-repellat-earum-hic/string/toLower';
import map from '@devtea2026/placeat-repellat-earum-hic/array/map'

const toLowerName = compose(
    toLower,
    pathOr(['name'], '')
);
const result = map(toLowerName)([{name: 'testA'}, {name: 'testb'}])

Benchmarks

$ npm run benchmark
UtilityLodashRamdaUtils
clone120,807 ops/sec112,053 ops/sec293,572 ops/sec
array/filter2,080,728 ops/sec1,849,633 ops/sec2,046,113 ops/sec
is/empty1,506,963 ops/sec474,177 ops/sec3,731,564 ops/sec
function/flip7,528,745 ops/sec3,735,143 ops/sec3,490,207 ops/sec
object/path12,023,128 ops/sec8,894,639 ops/sec7,587,076 ops/sec
string/trim4,215,928 ops/sec1,034,655 ops/sec6,029,794 ops/sec

Browser support

  • Chrome >= 40
  • Firefox >= 52
  • Edge >= 14
  • IE >= 11
  • Safari >= 10
  • iOS >= 10
  • Android >= 4.4

Node support

  • 6.4.0 and higher

Bundle size

LibraryBundle size
import _ from 'lodash'70.1 kb
import ... from 'lodash/...'21.8 kb
import R from 'ramda'41.3 kb
import ... from 'ramda/src/...'10 kb
import ... from '@devtea2026/placeat-repellat-earum-hic/...'2.32 kb

For detailed comparison with specific libraries see COMPARE.md

emitES2022waitelmconsumeremoveMicrosoftformscss nestingsignalsio-tsWeakMapruntimearrayprotodebugfastifyES2023formArraynameownPushamazontoolkitlessECMAScript 7cryptotoobjectlooksetterinstalllook-upmkdirsdeleteglobalfindLastIndexmkdirmime-dbdataviewpropertycss variableRegExp#flagsdayjsavastringifycallboundTypeScriptchromiumpackage.jsonpreprocessorES3configurablehardlinksredactless.jsless mixinsECMAScript 2020ECMAScript 2019movermdirassertionObject.definePropertyfromwatcherMapyamlfile systemIteratorcallshellstructuredClonecloneregexpgetOwnPropertyDescriptorframeworkObject.keyspackagepreserve-symlinksrgbwgetargumentObject.valuesregular expressionfastcopyreadablestreamsignalStreamfind-upwafhas-ownpropdotenvtoStringTagpostcss-plugincoremergedomdescriptorsWebSocketstrimLeftfunctionalWeakSetget0polyfillcolorArray.prototype.flatoptimisthasOwnPropertynativejasminemake dirInt16Arraytyped arraycompilertakeshrinkwrapindicatoromitFloat64ArrayglobalsenvSetextensionemojiredux-toolkitincludesresolvevaluescolorsexpressformatproxyfast-copywordbreaktc39typedarrayseslint-pluginextendES8utilitymkdirpperformantgroupfunctionssortedviewreact-testing-librarysymlinksoptionstyleajaxES2021hashsuperagentcompile lessArrayBuffer.prototype.slicehttpoffsetsequenceidentifiersECMAScript 2016protobufencryptionObject.getPrototypeOfmonorepoimportexportdefinecjkl10nECMAScript 2021a11yroutermimetypesthroattostringtagFloat32ArraytrimStartPromiseArray.prototype.includesemrdifffindup__proto__astes7writableloggerjsxyuprobustagentasciilockfilecallbindECMAScript 3directoryjestReflect.getPrototypeOfnegative zerocall-bindObservablesoutputhandlerszodapierrorECMAScript 5HyBiopenerloadingswffindbusywatchtoolsrequestnegativewatchinges-shimsstoragegatewaywidthcodesEStraverse-0mimehelpersmatchAll[[Prototype]]sharedarraybufferpyyamlawesomesauceflaghttpschromees8consoleflatMapvariables in cssreactinputlesscssawsestreesinatratimeelbutil.inspectstatusstablelogrecursiveschemereducemobilelimitStreamsvisualchaikinesisajvrequirelanguageObject.fromEntriestextelasticachextermtypanion$.extendfsequalityeast-asian-widthfast-clonebannerArray.prototype.flatMapparentReactiveExtensionsstyled-componentsclassnamespluginYAMLpushshebangTypeBoxaccessibilityES2017boundlengthcomparehookformpipeUint8ArraytestingpackagesconcatcircularsuperstructjavascriptRegExp.prototype.flagsfindLastObject.istypedBigInt64ArrayObjecttrimRightincommanderreplayAsyncIteratorsnshookscall-boundisConcatSpreadablewatchFilecomputed-typeswarningcmd@@toStringTaglinewrapbootstrap lessECMAScript 2022queueMicrotaskRxextraebsECMAScript 2018cssforEachchannelflats3uninstalloptimizerfetchaccessorscheme-validationtestdependenciesreact-hook-formcss-in-jsarraybufferargparseeveryqses2016childrmmomentdropdataViewautheventDispatcherbcryptlistenersclisortECMAScript 2023tskoreanwrapcloudtrailes5urlsendpointformattingrestfultrimmatcheshigher-orderlaunchspinnerjwtdeterministicec2createspinnerssigintgloblinkmetadataesmatchauthenticationinstallerchinesespecexecparsingfixed-widthsqsbluebird
7.5.114

11 months ago

7.5.113

12 months ago

7.5.112

12 months ago

7.5.111

12 months ago

7.5.110

12 months ago

7.5.109

12 months ago

7.5.108

12 months ago

7.5.107

12 months ago

3.1.50

1 year ago

3.1.52

1 year ago

3.1.51

1 year ago

4.3.59

1 year ago

5.3.94

1 year ago

5.3.93

1 year ago

5.3.92

1 year ago

5.3.91

1 year ago

5.3.90

1 year ago

5.3.95

1 year ago

5.3.83

1 year ago

3.1.34

1 year ago

5.3.82

1 year ago

3.1.33

1 year ago

5.3.81

1 year ago

3.1.36

1 year ago

5.3.80

1 year ago

3.1.35

1 year ago

3.1.38

1 year ago

3.1.37

1 year ago

3.1.39

1 year ago

3.1.30

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

2.1.19

1 year ago

2.1.23

1 year ago

2.1.21

1 year ago

2.1.22

1 year ago

2.1.20

1 year ago

5.3.89

1 year ago

5.3.88

1 year ago

5.3.87

1 year ago

5.3.86

1 year ago

5.3.85

1 year ago

5.3.84

1 year ago

5.3.72

1 year ago

3.1.45

1 year ago

5.3.71

1 year ago

3.1.44

1 year ago

5.3.70

1 year ago

3.1.47

1 year ago

3.1.46

1 year ago

3.1.49

1 year ago

3.1.48

1 year ago

4.3.60

1 year ago

3.1.41

1 year ago

3.1.40

1 year ago

3.1.43

1 year ago

3.1.42

1 year ago

4.3.64

1 year ago

4.3.63

1 year ago

4.3.62

1 year ago

4.3.61

1 year ago

4.3.65

1 year ago

5.3.79

1 year ago

5.3.78

1 year ago

5.3.77

1 year ago

6.4.103

12 months ago

5.3.76

1 year ago

6.4.104

12 months ago

5.3.75

1 year ago

6.4.101

12 months ago

5.3.74

1 year ago

6.4.102

12 months ago

5.3.73

1 year ago

6.4.100

12 months ago

5.3.69

1 year ago

5.3.68

1 year ago

5.3.67

1 year ago

5.3.66

1 year ago

5.3.65

1 year ago

3.1.23

1 year ago

3.1.25

1 year ago

3.1.24

1 year ago

3.1.27

1 year ago

3.1.26

1 year ago

3.1.29

1 year ago

3.1.28

1 year ago

5.4.95

1 year ago

5.4.96

1 year ago

5.4.97

12 months ago

6.4.98

12 months ago

6.4.97

12 months ago

6.4.99

12 months ago

3.2.53

1 year ago

3.2.52

1 year ago

3.2.54

1 year ago

4.2.54

1 year ago

4.2.55

1 year ago

4.2.56

1 year ago

6.5.104

12 months ago

6.5.105

12 months ago

6.5.106

12 months ago

6.5.107

12 months ago

4.2.57

1 year ago

4.2.58

1 year ago

4.2.59

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.0.15

1 year ago

2.0.16

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago