subtract

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
800 B
Subtracts its second argument from its first argument.
1 contributor
Install subtract as a package?
Copied
npm i @bit/justin-capalbo.ramda.subtract
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
subtract (
a:Number,
b:Number
) : Number

Subtracts its second argument from its first argument.

Example
R.subtract(10, 8); //=> 2

     const minus5 = R.subtract(R.__, 5);
     minus5(17); //=> 12

     const complementaryAngle = R.subtract(90);
     complementaryAngle(30); //=> 60
     complementaryAngle(72); //=> 18
Arguments
a: Number

The first value.

b: Number

The second value.

Returns
Number

The result of `a - b`.

Help and resources