ez-functions
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

EzFunctions

This library contains shared functions that support the projects ngx-ez and ez-state

clone creates a deep clone of an object dateSort compares two date objects for sorting deepEquals return is all the properties of an object are equal deepMerge take two objects source and data and returns a new object of the properties of source updated with copies of data defaultSort is used to sort objects flattenGroup returns a flat array from a grouped object groupBy groups and array of objects into a grouped object multipleSort returns a sort function for sorting by multiple properties naturalSort is used for natural sorting strings eg: '2.0' < '10' numberSort is used for sorting numbers pageNums returns and array of page numbers for the paramaters pageNum, totalPages, maxPages randomString generates a random string resolveProperty will return the deep property based of the string input trapFocus confines keyboard input to a DOM element

Readme

Keywords

none

Package Sidebar

Install

npm i ez-functions

Weekly Downloads

29

Version

1.0.1

License

none

Unpacked Size

97.3 kB

Total Files

38

Last publish

Collaborators

  • adriandavidbrand