Giter VIP home page Giter VIP logo

math.hypot's Introduction

Math.hypot Version Badge

dependency status dev dependency status License Downloads

npm badge

An ESnext spec-compliant Math.hypot shim/polyfill/replacement that works as far down as ES3.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Getting started

npm install --save math.hypot

Usage/Examples

console.log(Math.hypot(3, 4)); // 5
console.log(Math.hypot(5, 7)); // 8.602325267042627
console.log(Math.hypot(2, 3, 6)); // 7
console.log(Math.hypot(-5)); // 5

Tests

Simply clone the repo, npm install, and run npm test

math.hypot's People

Contributors

nicolo-ribaudo avatar

Watchers

Jordan Harband avatar James Cloos avatar Denis Pushkarev avatar  avatar  avatar  avatar

math.hypot's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm aud Unavailable

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • [Deps] Update Update @ljharb/eslint-config to v21
  • [Deps] Update Update aud to v3
  • [Deps] Update Update eslint to v9
  • [Deps] Update Update nyc to v17
  • [Deps] Update Update safe-publish-latest to v2
  • [Deps] Update Update actions/checkout action to v4
  • ๐Ÿ” Create all pending approval PRs at once ๐Ÿ”

Detected dependencies

github-actions
.github/workflows/node-4+.yml
  • actions/checkout v2
  • actions/checkout v2
.github/workflows/node-esm.yml
  • actions/checkout v2
.github/workflows/node-iojs.yml
  • actions/checkout v2
  • actions/checkout v2
.github/workflows/node-pretest.yml
  • actions/checkout v2
  • actions/checkout v2
.github/workflows/node-zero.yml
  • actions/checkout v2
  • actions/checkout v2
.github/workflows/rebase.yml
  • actions/checkout v2
.github/workflows/require-allow-edits.yml
npm
package.json
  • call-bind ^1.0.0
  • define-properties ^1.1.3
  • @es-shims/api ^2.1.2
  • @ljharb/eslint-config ^17.3.0
  • aud ^1.1.3
  • auto-changelog ^2.2.1
  • eslint ^7.17.0
  • functions-have-names ^1.2.2
  • has-strict-mode ^1.0.1
  • nyc ^10.3.2
  • reflect.ownkeys ^1.0.2
  • safe-publish-latest ^1.1.4
  • tape ^5.1.1

  • Check this box to trigger a request for Renovate to run again on this repository

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.