mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			229 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			229 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* eslint no-console: 0 */
 | 
						|
/* eslint no-param-reassign: 0 */
 | 
						|
export default () => {
 | 
						|
  if (!Array.prototype.last) {
 | 
						|
    Object.assign(Array.prototype, {
 | 
						|
      last() {
 | 
						|
        return this[this.length - 1];
 | 
						|
      },
 | 
						|
    });
 | 
						|
  }
 | 
						|
};
 |