![]() ![]() It should return true if the object is the same, otherwise it should return false. The comparator function will be executed with two arguments (objOne, objTwo). comparatorĪ function to replace the default comparator function. ![]() Setting keyOnly to false will ensure the entire object is returned rather than just the id. Video synchronizer Vista download - ArraySync Vista download - Best Free Vista Downloads - Free Vista software download - freeware, shareware and trialware. By default the remove and unchanged results only provide the id (the field specificed by the key option), not the entire object. keyOnlyĭefaults to true, and is only relevant when a key is provided. For database stored information (with an id), using a key is the more likely scenario and use case. Autosync will then keep files in these two folders in sync with each other, automatically and without any additional efforts from the user. You choose which folder in your device should be synced with which folder in your cloud storage account, and how. Also only the value of the key is returned in unchanged and remove, whereas the whole object is returned in changed and create. Autosync is an automatic file sync and backup tool. If a key is provided array-sync adds another key to the object it returns ( changed). Takes a source array, and compares it against an updated version of the source array to determine what needs to be removed, created and what hasn't changed. Install $ npm install array-syncĪPI var arraySync = require('array-sync') Most data synchronization goes through the same process, and array-sync allows you to customize the process by providing a comparator function. ![]() For example, if you provide a list of clients for your users and provide them the ability to create new clients, edit current clients and remove old clients. It will accept a source array, an updated version of that source array and provide an object containing the keys remove, unchanged, changed and create.Īrray-sync can be used to simplify CRUD operations resulting from bulk array manipulations. Array-sync is a complete data synchronization module for Node.js, highly customizable. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |