GithubHelp home page GithubHelp logo

total-order / any Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.33 MB

:clown_face: A total order for all JavaScript values.

Home Page: https://total-order.github.io/any

License: GNU Affero General Public License v3.0

JavaScript 89.34% Shell 10.66%
js agpl javascript compare comparison sorting searching search-trees heaps

any's Introduction

🤡 total-order

A total order for all JavaScript values. See docs.

⚠️ The code requires regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

import totalOrder from 'total-order'
[
 [1, 2, 3],
 0,
 undefined,
 {x: 1},
 new Date(1),
 null,
 {},
 /abc/,
 new Date(0),
 'abc',
 [],
 NaN
].sort(totalOrder)
// [
//  0,
//  NaN,
//  null,
//  [],
//  [1, 2, 3],
//  new Date(0),
//  new Date(1),
//  {},
//  {x: 1},
//  /abc/,
//  'abc',
//  undefined,
// ]

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

any's People

Contributors

a-flying-potato avatar make-github-pseudonymous-again avatar renovate-bot avatar renovate[bot] avatar

Watchers

 avatar

any's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.