title: How to get name of datatable column?
body: <p>I'm using DataTable 1.10.9 (from <a href="https://datatables.net" rel="noreferrer">https://datatables.net</a>). Columns for the datatable are defined at the initialization step in javascript and each column has a unique name, e.g.: </p>
  
  <pre><code>var table = $('#example').DataTable({
              columns: [
                  { name: 'first-name' },
                  { name: 'last-name' },
                  { name: 'position' },
                  { name: 'location' },
                  { name: 'salary' }
              ]
          });
  </code></pre>
  
  <p>I know I can get the column from the table by the name I've given it, but I can't seem to find how to find a column's name from the column object. (I'm hoping it's possible with the current state of the component.) For example:</p>
  
  <pre><code>        table.columns().every(function() {
              //I'd want to see what the name of this column is, something like:
              console.log(this.name()); //will throw an exception since no such function exists
              //or
              console.log(this.name); //will output 'undefined'
          });
  </code></pre>
  
  <p>What's the proper function or property to get the name there?</p>