Skip to content
#

utilities

Here are 1,785 public repositories matching this topic...

martingronlund
martingronlund commented Oct 1, 2019
const customizer = console.log // returns undefined => merging is handled by `mergeAllWith`

// good
mergeAll([{ a: 1 }, { b: 2 }]) // { a: 1, b: 2 }
mergeAllWith(customizer, [{ a: 1 }, { b: 2 }]) // { a: 1, b: 2 }
// A-OK; customizer logs the following:
// undefined 2 "b" Object { a: 1, b: 2 } Object { b: 2 } undefined

// bad
mergeAll({}, { a: 1 }, { b: 2 }) // { a: 1, b: 2 }; OU
icleolion
icleolion commented Jan 16, 2020

parseISO v2 documentation currently states

The previous parse implementation was renamed to parseISO.

parse v2 documentation currently states

Old parse was renamed to toDate. Now parse is a new function which parses a string using a provided format.

I think considering the sentence is to divert people who have previously been using v1 parse to the correct v2 equivalent, it only

apengwin
apengwin commented Feb 6, 2020
  • I have marked all applicable categories:
    • exception-raising bug
    • [ x] visual output bug
    • documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand [StackOverflow#tqdm] is more appropriate)
    • new feature request
  • [ x] I have visited the [source website], and in particular
    read the [known iss
kwokhou
kwokhou commented Feb 4, 2020

This subtitle for _.isEmpty is misleading, it kind of imply that the lodash's version does not evaluate Set or Map (which is not true), see lodash isEmpty code here.

If the ❗️is for the Native implementation, it should put on top of the Native method.

_.isEmpty
Checks if value is an empty object or collection. ❗️Note

Menci
Menci commented Feb 13, 2020
root@syzoj-test-vm:~/syzoj-ng-app# commitizen init cz-conventional-changelog --yarn --dev --exact
Attempting to initialize using the npm package cz-conventional-changelog
yarn add v1.19.0
[1/4] Resolving packages...
[2/4] Fetching packages...
error Incorrect integrity when fetching from the cache
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
root@
iamnewton
iamnewton commented Feb 21, 2017

I think the work you've done on this is amazing. Seems like a great project, but your README is a bit bloated and hard to decipher. Might I suggest you condense it down into a set of readable chunks and maybe link off to the wiki for the more detailed bits.

Its only my opinion, but I find that answering the following questions, in order, helps to simplify docs.

  • who? - who wrote the p
sindresorhus
sindresorhus commented Mar 14, 2019

My goal is to have the best documentation for each provided type.

If something is unclear in any of the types, please comment or open a PR to improve it.

Some things you could contribute:

  • Fix typos.
  • Improved description of the type.
  • More examples.
  • Provide more real-world use-cases. This helps the user understand where a type might come in handy.
  • Add links to relevant discu
radeklat
radeklat commented Mar 23, 2020
from funcy import get_in

get_in({}, "key")  # example 1
get_in([], "key")  # example 2

In the code sample above, example 1 returns the default value because the path doesn't exist. However, example 2 fails with:

.../site-packages/funcy/colls.py in get_in(coll, path, default)
    271     for key in path:
    272         try:
--> 273             coll = coll[key]
  
webberwang
webberwang commented Apr 17, 2020
import { Assign } from 'utility-types';

type Props = { name: string; age: number; visible: boolean };
type NewProps = { age: string; other: string };

// Expect: { name: string; age: number; visible: boolean; other: string; }
type ExtendedProps = Assign<Props, NewProps>;
// Expect: { name: string; age: STRING; visible: boolean; other: string; }
glom
IrvingArmenta
IrvingArmenta commented Jul 25, 2019

I think it would be nice to add comments to the typescript definitions, using the same documentation as is in this repository. I already did it on local but I don't have the permissions for PR's of course.

This is for the usage with VScode, following the TS doc format:
<img width="1792" alt="スクリーンショット 2019-07-25 9 57 19" src="https://user-images.githubusercontent.com/20631137/61838083-b2e8c

Utilities apps

Mergify

Pull requests automation service. Merge your pull requests faster

Sync by Unito

Build workflows across tools and teams. Integrate GitHub with Jira, Trello, Asana, HubSpot, Zendesk, Basecamp, Wrike and more

BackHub

Reliable GitHub repository backup, set up in minutes

Improve this page

Add a description, image, and links to the utilities topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the utilities topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.