Socket
Socket
Sign inDemoInstall

@node-novel/sort

Package Overview
Dependencies
2
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-novel/sort


Version published
Maintainers
1
Install size
223 kB
Created

Readme

Source

@node-novel/sort

sort callback for @node-novel

API

import { defaultSortCallback, createSortCallback } from '@node-novel/sort';

let arr1: string[] = [];

arr1.sort(defaultSortCallback);

let arr2: {key: string, name: string}[] = [];

arr2.sort(function (a, b)
{
    return defaultSortCallback(a.key, b.key)
    || defaultSortCallback(a.name, b.name)
})

Keywords

FAQs

Last updated on 03 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc