Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 1.63 KB

README.md

File metadata and controls

55 lines (46 loc) · 1.63 KB

behna

This package is about some cool funtions like

Build Status npm version License: MIT

Funtions

Installation

npm i behna

Example

import {getSize, existInThisRadius, Ellipsis} from 'behna';
console.log("getSize =",getSize(obj));
console.log("existInThisRadius =",existInThisRadius({ lat: 31.449865899999995, lng: 74.2968439 }, { lat: 31.5204, lng: 74.3587 }, 10));
console.log("Ellipsis =",<Ellipsis title="Ms Water Internship" limit="15" />);
let debounceCall = debounce(
  function() {
    alert("i am runnig");
  },
  1000,
  false
);
  <button onClick={() => debounceCall()}>debounce</button>
      <div>keep pressing button it will triger after you top pressing</div>
    

About

getSize tells size(Memory) of oj that
existInThisRadius tells You location Exist in Radius or not

Params(myLocation,AreaLocation,km)
mylocation is my lat, lng 
AreaLocation is Region or City Like Lahore lat lng
km is Radius Size in Kilimeters 

Ellipsis will show ... in the end of line after given limit

<Ellipsis title="Ms Water Internship" limit="15" />

Edit Ellipsis

License

Behna is MIT licensed.