@chaorenzeng/mathhelper

Using npm:

Usage no npm install needed!

<script type="module">
  import chaorenzengMathhelper from 'https://cdn.skypack.dev/@chaorenzeng/mathhelper';
</script>

README

Installing

Using npm:

npm install @chaorenzeng/mathhelper --save

Example

<template>
  <div>Use MathHelper</div>
</template>

<script>
  import { MathHelper } from '@chaorenzeng/mathhelper';
  export default {
    mounted() {
      console.log('-->add', MathHelper.add(1, 2)); //-->add 3
      console.log('-->minus', MathHelper.minus(3, 2)); //-->minus 1
      console.log('-->multiply', MathHelper.multiply(2, 2)); //-->multiply 4
      console.log('-->division', MathHelper.division(8, 2)); //-->division 4
    },
  };
</script>

API

method example introduce
add add(1, 2) add two numbers
minus minus(3, 2) minus two numbers
multiply multiply(2, 2) multiply two numbers
division division(8, 2) division two numbers