Fix whitespace issues, Support cell object in the function 'sheet_add_aoa' #1279

Closed
hellosean1025 wants to merge 0 commits from master into master
hellosean1025 commented 2018-09-20 03:44:08 +00:00 (Migrated from github.com)

Support cell object , make js-xlsx easier to use.

describe('support object cell', function() {
  var data = require('./').utils.sheet_add_aoa (null, [
    ['url', 'name', 'id'],
    [
      {
        l: {
          Target: 'https://123.com',
        },
        v: 'url',
        t: 's',
      },
      'tom',
      'xxx'
    ],
  ]);
  it('base', function(){
    assert.deepEqual(data.A2,  { l: { Target: 'https://123.com' },
    v: 'url',
    t: 's' })
  })
})


Support cell object , make js-xlsx easier to use. ```js describe('support object cell', function() { var data = require('./').utils.sheet_add_aoa (null, [ ['url', 'name', 'id'], [ { l: { Target: 'https://123.com', }, v: 'url', t: 's', }, 'tom', 'xxx' ], ]); it('base', function(){ assert.deepEqual(data.A2, { l: { Target: 'https://123.com' }, v: 'url', t: 's' }) }) }) ```
hellosean1025 commented 2018-09-24 03:55:09 +00:00 (Migrated from github.com)

what time merge?

what time merge?

Pull request closed

Sign in to join this conversation.
No description provided.